vqv / ggbiplot

A biplot based on ggplot2
302 stars 158 forks source link

"error: failed to lock directory"- while installing #44

Open AyushjGyawali opened 6 years ago

AyushjGyawali commented 6 years ago

Hi, The code that I ran to instal ggbilpot is : install_github("vqv/ggbiplot")

Then at first I get the error......

ERROR: failed to lock directory 'C:/Users/ayush/Documents/R/win-library/3.5' for modifying Try removing 'C:/Users/ayush/Documents/R/win-library/3.5/00LOCK-vqv-ggbiplot-7325e88' In R CMD INSTALL

Then when I go ahead and remove the file suggested above and re run the same installation code I get the error.....

** installing source* package 'ggbiplot' ... Warning in file.copy(f, instdir, TRUE) : problem copying .\NAMESPACE to C:\Users\ayush\Documents\R\win-library\3.5\ggbiplot\NAMESPACE: Permission denied Warning in file(file, if (append) "a" else "w") : cannot open file 'C:/Users/ayush/Documents/R/win-library/3.5/ggbiplot/DESCRIPTION': Permission denied Error in file(file, if (append) "a" else "w") : cannot open the connection ERROR: installing package DESCRIPTION failed for package 'ggbiplot'

Please help. Thanks in advance. Ayush