yihui / xfun

Miscellaneous R functions
https://yihui.org/xfun/
Other
135 stars 28 forks source link

Issue with installing the {xfun} package, permission denied #77

Closed BryanTegomoh closed 1 year ago

BryanTegomoh commented 1 year ago

Hello, anyone one else seen this error message?

install.packages('xfun', repos = 'https://yihui.r-universe.dev') Installing package into ‘C:/Users/bryan/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) trying URL 'https://yihui.r-universe.dev/bin/windows/contrib/4.2/xfun_0.37.1.zip' Content type 'application/zip' length 408761 bytes (399 KB) downloaded 399 KB package ‘xfun’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘xfun’ Warning in install.packages : problem copying C:\Users\bryan\AppData\Local\R\win-library\4.2\00LOCK\xfun\libs\x64\xfun.dll to C:\Users\bryan\AppData\Local\R\win-library\4.2\xfun\libs\x64\xfun.dll: Permission denied Warning in install.packages : restored ‘xfun’ The downloaded binary packages are in C:\Users\bryan\AppData\Local\Temp\Rtmp8qAmQj\downloaded_packages

yihui commented 1 year ago

You need to restart R and install the package in a clean R session without xfun being loaded.

cf https://stackoverflow.com/a/52815761/559676