This blog post (https://jimgar.github.io/posts/vs-code-macos-r/post.html) presents a solution that resolved the '--nosave', '--no-restore', '--r-binary'
error on my machine (mac) by adding an additional r.rterm.option
list:
{
"r.bracketedPaste": true,
"r.rpath.mac": "/usr/local/bin/R",
"r.rterm.mac": "/Library/Frameworks/Python.framework/Versions/3.11/bin/radian",
"r.rterm.option": [
"--no-save",
"--no-restore",
"--r-binary=/usr/local/bin/R"
]
}
The path for r.rterm.mac
can be found by running which radian
in the terminal. Similarly, the path for r.rpath.mac
can be found by with which R
.