Hi!
I found a new package called pak, which is "another approach to package installation".
As per the documentation, I need to run the command pak_setup()
after installation. This will create a new private library (currently in the location C:\Users\Username\AppData\Local\R-pkg\Cache/lib/3.5
), apart from the default one (currently in the location C:/Users/Username/R/win-library/3.5
), and copy all the existing packages to that. As far as I can tell, for all future installations via pak
, it downloads first to the default location, and then copies it to the private library.
I like this package, but I don't really want two copies of the same packages on my device. I'd like to remove any one of them. So, is it possible to get rid of the private library? If not, will changing the default library path of R to this location will stop copying these (unnecessary) duplicates?
Any help will be appreciated.