radian
radian copied to clipboard
`?/help` only valid in the the integrated `radian` in the `vscode` or `R` in the terminal
trafficstars
- I tried delete my radian config but it doesn‘t help.
- my
~/.Rprofile
message("Hi czg, welcome to R")
options(prompt = "czg> ")
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")
- I run
r --r-binary $(which R)but it doesn‘t help- I only installed only one version of
R
whereis R R: /usr/bin/R /usr/lib/R /etc/R /usr/local/lib/R /usr/share/R /usr/share/man/man1/R.1.gz - I only installed only one version of
- I hope someone can help me :hugs:
- if need more logs , please tell me . I would appreciate much
I am not sure if I understand your issue.
I am sorry for saying maybe hastily.
I am not sure if I understand your issue.
but I solved the issue and thank for your development :smiling_face_with_three_hearts:
- it turns out the
vscode-Rmake the detection of workspace , I know it by toggling theDeveloper toolin 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 ofhttpgdto see syntaxhighlighting and hyperlink jumping,etc - so just use
radianin the vscode, it is fantastic :smile:!
it can be tweaked to show in the terminal outside vscode by modify .Rprofile .
- but it may need to run
R: Create R terminalin thevscode
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"