我试图通过最近SublimeLinter lintr的*.Rnw
和*.Rmd
文件中的added support for knitr来获取R块。
*.R
的Lintr linting工作得很好,但*.Rnw
或.Rmd
中没有knitr chunk。
缺少功能或我错过了设置? 这是我的SublimeLinter设置:
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"annotations": {
"@disable": false,
"args": [],
"errors": [
"FIXME"
],
"excludes": [],
"warnings": [
"TODO",
"README"
]
},
"lintr": {
"@disable": false,
"args": [],
"cache": "TRUE",
"excludes": [],
"linters": "default_linters"
},
"r": {
"@disable": false,
"args": [],
"cache": "TRUE",
"excludes": [],
"linters": "default_linters"
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": true,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"knitr (Markdown)": "r",
"php": "html",
"python django": "python",
"r extended": "r"
},
"warning_color": "DDB700",
"wrap_find": true
}
}