vscode-R: Lintr is not recognized as installed.
- VSCode Version: 1.19.1
- VSCode-R Version: 0.5.2
- OS Version: Windows 10
With the following settings when I try to run R: lintr it tells me that the lintr package is not installed even though it is.
any(installed.packages()[, "Package"] == "lintr")
[1] TRUE
Those are default settings:
// toggle caching of lint results
"r.lintr.cache": true,
// Enable lintr
"r.lintr.enabled": true,
// R executable path for lintr
"r.lintr.executable": "",
// If true, lintr exec lint_package() instead of lint()
"r.lintr.ispackage": false,
// list of linter functions
"r.lintr.linters": "default_linters",
// R path for Linux
"r.rterm.linux": "/usr/bin/R",
// R path for Mac OS X
"r.rterm.mac": "/usr/local/bin/R",
// R command line options (i.e: --vanilla)
"r.rterm.option": [
"--no-save",
"--vanilla"
],
// R.exe path for windows
"r.rterm.windows": "C:\\Program Files\\R\\R-3.3.3\\bin\\x64\\R.exe",
// An optional encoding to pass to R when executing the file, i.e. 'source(FILE, encoding=ENCODING)'
"r.source.encoding": "UTF-8",
// Keeping focus when running
"r.source.focus": "editor",
This is what I have in user settings
"workbench.colorTheme": "Monokai",
"r.rterm.windows": "C:\\Program Files\\R\\R-3.4.2\\bin\\x64\\R.exe",
"r.lintr.executable": "C:\\Program Files\\R\\R-3.4.2\\bin\\x64\\R.exe"
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 16 (8 by maintainers)
@bpiv400 Thank you for new information. This bug looks related https://github.com/REditorSupport/vscode-r-lsp . I published new r-lsp version for windows user, please try it.
OK, this issue looks very important. Thank you for information @UpsideDownRide , @zhihaolyu and @hongyuanjia !
@Ikuyadeu I’m using windows but R-3.4.3. Thank you.