Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Terminal shell path "R" is a directory #2

Open
notZaki opened this issue Oct 7, 2019 · 0 comments
Open

Error: Terminal shell path "R" is a directory #2

notZaki opened this issue Oct 7, 2019 · 0 comments

Comments

@notZaki
Copy link
Owner

notZaki commented Oct 7, 2019

Running any command, such as Bookdown: Serve Book results in an error message saying that the shell path is a directory.

This occurs on Linux (Solus OS), although I've used the extension on a different computer with the same OS and didn't encounter this problem.

Workaround:
Locate the R executable with running the following in a terminal

which R

and note down the returned path.
Then:

open vscode -> Ctrl Shit P -> Preferences: Open Settings (JSON)

and add the following as a new line:

"Bookdown.R" = "/usr/bin/R"

where the "/usr/bin/R" part should match whatever was returned by which R earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant