Vscode-r: As of vscode-R 1.6.0 I cannot see help files

Created on 22 Nov 2020  路  6Comments  路  Source: Ikuyadeu/vscode-R

I have the latest versions of vscode-R (v1.6.0) and {languageserver} (v0.3.7) on the latest VSCode (v1.51.1) on MacOS 19.6.0. If I type into the console ?rnorm, as an example, I just see a black tab with nothing displayed there.

These are my current settings:

  "r.rterm.mac": "/usr/local/bin/radian",
  "r.rterm.option": [""],
  "r.bracketedPaste": true,
  "r.sessionWatcher": true,
  "r.lsp.debug": true,
  "r.lsp.diagnostics": true,
  "r.alwaysUseActiveTerminal": true,

Screenshot 2020-11-22 at 09 38 45

bug

All 6 comments

You might use options(vsc.helpPanel = FALSE) to disable the help panel at the moment.

@ManuelHentschel any idea on this?

Looks like setting r.helpPanel.rpath does not have any effect.

If I set

"r.rterm.mac": "/usr/local/bin/radian",
"r.helpPanel.rpath": "/usr/local/bin/R"

it won't work either. and

"r.rterm.mac": "",
"r.helpPanel.rpath": "/something/not/exists"

works.

Looks like r.helpPanel.rpath is ignored/not used at all. It will always default to r.rterm.mac.

Interestingly, if I devtools::load_all() and then look at the help file, it will load the development help file in my internet browser.

load_all attaches an environment devtools_shims which contains a modified version of help that is not affected by the overwrites from init.R:

> devtools::load_all()
Loading RTestPackage

> search()
 [1] ".GlobalEnv"           "devtools_shims"       "package:RTestPackage"
...

> ls(as.environment('devtools_shims'))
[1] "?"           "help"        "system.file"

@nathaneastwood Would you like to install the latest build at https://github.com/Ikuyadeu/vscode-R/actions/runs/377371651 and see if it works for you?

I installed the extension from the vsix and can confirm it works! Thanks very much to all for your quick response to this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

albert-ying picture albert-ying  路  5Comments

Victsz picture Victsz  路  5Comments

Kalaschnik picture Kalaschnik  路  4Comments

bdeshon picture bdeshon  路  3Comments

tdeenes picture tdeenes  路  5Comments