sebastian-c / overflow

An R package to assist people answering R questions on Stack Overflow
14 stars 12 forks source link

tmp_install_packages removes libraries from libPath #8

Closed sebastian-c closed 11 years ago

sebastian-c commented 11 years ago

In a clean R session:

.libPaths()
[1] "C:/Users/Sebastian/Rlibs"                        "C:/Users/Sebastian/Documents/R/win-library/2.15"
[3] "C:/Program Files/R/R-2.15.3/library"    

library(oveRflow)
tmp_install_packages("fun")

.libPaths()
[1] "C:/Users/Sebastian/Rlibs"                         "C:/Users/Sebastian/AppData/Local/Temp/RtmpsjssTZ"
[3] "C:/Program Files/R/R-2.15.3/library" 

One of the libraries is overwritten. This is only temporary as restarting R fixes the libpath back to its original state, but if you have (for whatever reason) many libraries and packages distributed between them, it could be an issue.

juba commented 11 years ago

Strange, I didn't notice this on my system. But your patch seems fine !