question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Ikuyadeucommented, Mar 4, 2018

@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.

1reaction
Ikuyadeucommented, Feb 6, 2018

OK, this issue looks very important. Thank you for information @UpsideDownRide , @zhihaolyu and @hongyuanjia !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found