打开RStudio自动加载包

在项目目录新建文件:.Rprofile,注意大小写,内容如下:
cat("Welcome to this project.\n")
require(ggplot2)
require(zoo)

File - Open Project 选择项目目录打开,能看到控制台输出Welcome to this project.
https://www.r-bloggers.com/2012/06/load-packages-automatically-in-rstudio/ https://*.com/questions/14238148/how-to-load-packages-automatically-when-opening-a-project-in-rstudio
上一篇:Python基础-函数


下一篇:ASP.NET在访问Controller的方法带参数时怎样防止黑客攻击