Reputation: 324
I have to reinstall all the packages like dplyr
or ggplot2
each time that I restart Rstudio.
Do you have any suggestion for setting once and for all my packages in Rstudio?
> version
Blockquote _
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 2.2
year 2015
month 08
day 14
svn rev 69053
language R
version.string R version 3.2.2 (2015-08-14) nickname Fire Safety
Blockquote
Upvotes: 0
Views: 202
Reputation: 3327
You could either have a script that runs:
packages <- c("plyr", "ftnonpar")
install.packages(packages)
Where you would just add entries for each package in packages
, and run the script each time you open.
However, it might just be that you are not calling the packages each time you restart Rstudio and need to use:
library(<package_name>)
For each package you intend to use at the top of your script.
Upvotes: 1