R-with-Conda/.Rprofile
Steven Hobs a1e5be0e8c update
2025-03-24 18:46:22 +08:00

9 lines
322 B
R

# 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"))
}