Lintr is not recognized as installed.
See original GitHub issue- 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"
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Lintr is not recognized as installed. · Issue #41 - GitHub
With the following settings when I try to run R: lintr it tells me that the lintr package is not installed even though...
Read more >lintr not working in R Studio - RStudio Community
I have been able to get lintr to work by uninstalling R and deleting the folder that holds packages and then reinstalling R....
Read more >How does one enable lintr with Visual Studio Code
R file in VSC, I get a popup that says lintr is not installed (it most ... Adam, do you recognize you're displaying...
Read more >lintr is not working with sublime - Super User
I have installed a SublimeLinter via package control, lintr is not available in package control, I have installed it via git.
Read more >Editor setup - lintr
See the installation documentation for those packages for more information. ... Note that configuration through .lintr files are not supported.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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 !