how to migrate the packages installed in Rx64 3.5.1 to Rx64 3.6.0.?

How to perform the migration of the packages installed in Rx64 3.5.1 to Rx64 3.6.0.

It happened to me that when trying to perform the update from R3.5.1 to R5.6.0 medianter installr / updateR I received the following alert

> updateR()
Installing the newest version of R,
 please wait for the installer file to be download and executed.
 Be sure to click 'next' as needed...
trying URL 'https://cran.rstudio.com/bin/windows/base/R-3.6.0-win.exe'
Content type 'application/x-msdownload' length 83735016 bytes (79.9 MB)
downloaded 79.9 MB


The file was downloaded successfully into:
 C:\Users\user\AppData\Local\Temp\RtmpIxKwiD/R-3.6.0-win.exe 

Running the installer now...

Installation status:  FALSE . Removing the file:
 C:\Users\user\AppData\Local\Temp\RtmpIxKwiD/R-3.6.0-win.exe 
 (In the future, you may keep the file by setting keep_install_file=TRUE) 
[1] FALSE
Warning message:
In shell(install_cmd, wait = wait, ...) :
  'C:\Users\user\AppData\Local\Temp\RtmpIxKwiD/R-3.6.0-win.exe' execution failed with error code 127
> 

After several attempts!
And so I downloaded the installation of the Rx64 3.6.0 and installed it separately!

In version R3.5.1 I have a large number of packages installed and it would be a great and tedious task to install each one again.

Just copy the content of the library folder (C:\Program Files\R\R-3.5.1\library) to the new location (without overwriting content) and then run this command in your R console

update.packages(checkBuilt=TRUE)
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.