2

package ‘plyr’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘plyr’

How can I solve this problem ? I have tried to delete the existing plyr file in C:\ drive but it doesn't work . I also using devtools , it doesn't work .

PKumar
  • 10,971
  • 6
  • 37
  • 52
Sorif Hossain
  • 1,231
  • 1
  • 11
  • 18

1 Answers1

2

You may use remove.packages like below:

library(utils)    
remove.packages("plyr")

and then try to install "plyr" using install.packages("plyr"). See if it works You may want to check documentation as well.

PKumar
  • 10,971
  • 6
  • 37
  • 52
  • It shows this: Error in remove.packages : there is no package called ‘plyr’ – Sorif Hossain May 29 '17 at 10:23
  • 2
    @SORIFHOSSAINSHUJON do a `unloadNamespace(plyr)` and/or close the R session and try it again. see if this works – PKumar May 29 '17 at 10:26
  • `unloadNamespace(plyr)` gave `Error in unloadNamespace(plyr) : object 'plyr' not found` but restarting the session worked, thanks! – Dan Apr 18 '19 at 09:36