【发布时间】:2021-10-11 02:20:27
【问题描述】:
当我启动 R (RStudio) 时,我总是从这些包开始:
dput(loadedNamespaces())
c("zoo", "tidyselect", "xfun", "shinyjs", "purrr", "corrplot",
"urca", "lattice", "vars", "colorspace", "vctrs", "generics",
"htmltools", "yaml", "grDevices", "utf8", "rlang", "pillar",
"glue", "DBI", "forecast", "TTR", "lifecycle", "quantmod", "timeDate",
"munsell", "gtable", "evaluate", "knitr", "tseries", "strucchange",
"lmtest", "parallel", "curl", "fansi", "methods", "xts", "Rcpp",
"scales", "fracdiff", "ggplot2", "stats", "datasets", "graphics",
"digest", "stringi", "dplyr", "grid", "quadprog", "tools", "sandwich",
"magrittr", "tibble", "crayon", "pkgconfig", "ellipsis", "MASS",
"rsconnect", "utils", "assertthat", "rmarkdown", "base", "R6",
"nnet", "nlme", "compiler")
我搜索了 .Rprofile,但它返回的 .RData 相同。
(my_rprofile <- file.path(Sys.getenv("R_USER"), ".RProfile"))
file.exists(my_rprofile)
file.exists(".RProfile")
重新安装 R 也没有帮助。我很想只从基本包开始 R。
感谢您的帮助
【问题讨论】:
-
你在使用 RStudio 吗?如果是这样,请编辑标签。
-
我怀疑您正在加载已保存的工作区。转到 RStudio 中的 全局选项 并删除相关的复选标记。
-
感谢您的回复,我已取消选中“启动时将 .RData 还原到工作区”,但它没有帮助。