caret-machine-learning icon indicating copy to clipboard operation
caret-machine-learning copied to clipboard

Warning: cannot remove prior installation of package

Open tobigithub opened this issue 10 years ago • 1 comments

 rP <- c("plyr","ggplot2","MASS")
 install.packages(rP, dependencies = c("Imports", "Depends", "Suggests")) 

repo is mran.revolutionanalytics.com results in

package ‘nnet’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘nnet’
package ‘plyr’ successfully unpacked and MD5 sums checked
package ‘ggplot2’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘ggplot2’
package ‘MASS’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        X:\Users\X\AppData\Local\Temp\RtmpI9HudC\downloaded_packages
Warning message:
In unlink(instPath, recursive = TRUE, force = TRUE) :
  cannot get info on 'X:\R\R-3.2.2\library/ggplot2', reason 'Access is denied'

Solution: delete directories with admin access that can not be installed directly from

.libPaths()

tobigithub avatar Nov 05 '15 05:11 tobigithub

See also https://support.microsoft.com/en-us/kb/3104094

tobigithub avatar Nov 05 '15 06:11 tobigithub