在Knitr Chunks上通过SublimeLinter在Sublime Text 3中使用lintr()

时间:2015-04-28 09:24:14

标签: r sublimetext3 knitr r-markdown sublimelinter

我试图通过最近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
}
}

0 个答案:

没有答案