Open sci-42ver opened 2 years ago
I am not sure if I understand your issue.
I am not sure if I understand your issue.
it turns out the vscode-R
make the detection of workspace , I know it by toggling the Developer tool
in the vscode
[Extension Host] [updateRequest] Ignored request outside workspace
Despite it can be tweaked to enable show in ?
result outside the vscode workspace, but it may lose the ability of httpgd
to see syntaxhighlighting and hyperlink jumping,etc
so just use radian
in the vscode, it is fantastic :smile:!
vscode
by modify .Rprofile
.but it may need to run R: Create R terminal
in the vscode
diff --git a/init_ubuntu/R_code/config/.Rprofile b/init_ubuntu/R_code/config/.Rprofile
index 2eb86ab..334f537 100644
--- a/init_ubuntu/R_code/config/.Rprofile
+++ b/init_ubuntu/R_code/config/.Rprofile
@@ -94,13 +94,13 @@ utils::rc.settings(ipck = TRUE)
#https://support.rstudio.com/hc/en-us/articles/205612627-Debugging-with-RStudio
#options(error = browser())
Sys.setenv(TERM_PROGRAM = "vscode")
source(file.path(
Sys.getenv(
if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME"
),
".vscode-R", "init.R"
)) +# Sys.setenv(TERM_PROGRAM = "vscode") +# source(file.path( +# Sys.getenv( +# if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME" +# ), +# ".vscode-R", "init.R"
~/.Rprofile
options(languageserver.snippet_support = TRUE) options(languageserver.max_completions = 50) options(languageserver.rich_documentation = TRUE) options(languageserver.log_file = "~/R_languageserver.log") options( languageserver.server_capabilities = list( resolveProvider = TRUE ) )
options(vsc.use_httpgd = TRUE) options(vsc.str.max.level = 5) options(vsc.rstudioapi = TRUE) options(vsc.viewer = "Beside") options(vsc.defaultAllowGlobalDebugging = TRUE) options(vsc.plot = "Active") options(vsc.browser = "Active") options(vsc.viewer = "Active") options(vsc.page_viewer = "Active") options(vsc.view = "Active") options(vsc.helpPanel = "Active") options(vsc.dev.args = list(width = 10, height = 8, units = "in", res = 300))
options(tab.width = 2) options(width = 130) options(graphics.record = TRUE) options(scipen = 10)
utils::rc.settings(ipck = TRUE) .First <- function() { options( searcher.launch_delay = 0, searcher.use_rstudio_viewer = FALSE, searcher.default_keyword = "tidyverse"
)
Sys.setenv(TERM_PROGRAM = "vscode") source(file.path( Sys.getenv( if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME" ), ".vscode-R", "init.R" ))
Sys.setenv(R_HISTSIZE = "100000") cat("\nWelcome at", date(), "\n")
if (Sys.getenv("TERM") %in% c("xterm-256color", "screen-256color")) { library("colorout") } } .Last <- function() { cat("\nGoodbye at ", date(), "\n") }
options(editor = "vim")