打开RStudio自动加载包

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

File - Open Project 选择项目目录打开,能看到控制台输出Welcome to this project.
posted @ 2020-11-25 20:27  船长博客  阅读(660)  评论(0编辑  收藏  举报
永远相信美好的事情即将发生!