tobigithub / caret-machine-learning

Practical examples for the R caret machine learning package
MIT License
67 stars 50 forks source link

Warning: cannot remove prior installation of package #3

Open tobigithub opened 9 years ago

tobigithub commented 9 years ago
 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 commented 9 years ago

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