init
This commit is contained in:
8
.Rprofile
Normal file
8
.Rprofile
Normal file
@@ -0,0 +1,8 @@
|
||||
# R 配置
|
||||
|
||||
options("repos" = c(CRAN = "https://mirrors.cernet.edu.cn/CRAN/")) # 包的镜像源
|
||||
|
||||
if (Sys.getenv("VSCODE_DEBUG_SESSION") == "1") { # Debugger关联
|
||||
Sys.setenv(TERM_PROGRAM = "vscode")
|
||||
source(file.path(Sys.getenv(if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME"), ".vscode-R", "init.R"))
|
||||
}
|
Reference in New Issue
Block a user