updateR icon indicating copy to clipboard operation
updateR copied to clipboard

Transfer all current packages to new R installation

Open carloscinelli opened this issue 8 years ago • 1 comments

Hi guys!

If you could make updateR transfer all current packages to the new R installation this would be great!

carloscinelli avatar May 11 '17 00:05 carloscinelli

@carloscinelli this would be a great improvement indeed! thank you for suggesting it. I would start from installed.packages() to derive a list of installed packages, and then add a command once the installation is complete to install them. something like:

installed.packages() %>% 
  as.data.frame() %>% 
  select(Package) %>% 
  as.vector() -> needed_packages
needed_packages <- paste(unlist(needed_packages))

and at the end

install.packages(needed_packages, verbose= TRUE)

feel free to take this further a propose a pull request, if you will. 😀 thank you once again

AndreaCirilloAC avatar May 11 '17 19:05 AndreaCirilloAC