Installation Problems

I have attempted multiple times to install a number of packages. The package appears to install correctly. When I attempt to call the package, it says that no such package exists.

install.packages("magrittr", dependencies = TRUE,repo = "")
Installing package into ‘C:/Users/westeme/AppData/Local/Temp/RtmpyYac3B/downloaded_packages’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 155755 bytes (152 KB)
downloaded 152 KB

package ‘magrittr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘C:\Users\westeme\AppData\Local\Temp\RtmpyYac3B\downloaded_packages\file5334792071c5\magrittr’ to ‘C:\Users\westeme\AppData\Local\Temp\RtmpyYac3B\downloaded_packages\magrittr’

The downloaded binary packages are in

Error in library(magrittr) : there is no package called ‘magrittr’

It seems like you have changed your .libpath() to a temp folder, the content on this folder gets automatically deleted so it is not a good idea, I recommend you to set your library path to a standard location, my personal preference is to use the standard system-level library (e.g. "C:\Program Files\R\R-3.6.2\library")

1 Like

Thanks, that still isn't working. Is it possible to reset the settings to the original, out-of-the-box download?

Unless you are modifying the libPaths in your or files, you would get back to default locations by reseting your R session.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.