.set_r_version | R Documentation |
Set R version in VSC settings.
.set_r_version(
r_v = "",
nm = c("r.rpath.windows", "r.rterm.option"),
path_to_settings = here::here(".vscode/settings.json"),
r_dir = "C:\\Program Files\\R"
)
.srv(
r_v = "",
nm = c("r.rpath.windows", "r.rterm.option"),
path_to_settings = here::here(".vscode/settings.json"),
r_dir = "C:\\Program Files\\R"
)
r_v |
character. R version. If "3" or "4", then set to "3.6.3" or "4.1.2", respectively. Otherwise must specify full version. |
nm |
character R\.set_vsc_setting-r_version.rvector.
VSC options to set R version for.
At present, must be options starting either
with |
r_dir |
character. Path where "R-<version>/bin/R.exe" is. |
invisible(TRUE)
. Side effect is that
JSON file with settings is updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.