我正在尝试让SublimeLinter通过lintr*.Rnw
对我的和*.Rmd
文档中的 R 块进行 lint,该lintr最近增加了对 knitr 的支持。
Lintr lintr*.R
工作正常,但不适用于*.Rnw
or中的 knitr 块.Rmd
。
缺少功能还是我缺少设置?这是我的 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
}
}