Is there a way to migrate all R packages when I install R in a new windows PC?

Viewed 30

When I am changing computers, is there a way to move the R packages from old windows machine to new machine? I know I could manually install all the packages, looking for a more automatic and easier option

1 Answers

I recommend to install packages on your new machine when you really need them. Your old machine will likely contain packages which you tried once but don't use. Then why install them on your new machine?

If you need on easy way to install the required packages for a project, then have a look at renv.

Related