I am fairly new to R, and am encountering an error that has been throwing me for a loop. I've used R before, however this error is occurring on a different machine than what I've used in the past. I have never encountered this error before, either. After installing the tidyverse package with:
install.package("tidyverse")
Some of the messages that appear during installation are:
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/xml2_1.1.1.zip'
Content type 'application/zip' length 3529738 bytes (3.4 MB)
downloaded 3.4 MB
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.4/tidyverse_1.2.1.zip'
Content type 'application/zip' length 82408 bytes (80 KB)
downloaded 80 KB
package ‘colorspace’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘C:\Users\Harbour\Documents\R\win-
library\3.4\file38019bc1be5\colorspace’ to
‘C:\Users\Harbour\Documents\R\win-library\3.4\colorspace’
package ‘backports’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘C:\Users\Harbour\Documents\R\win-
library\3.4\file38060ec26d3\backports’ to ‘C:\Users\Harbour\Documents\R\win-
library\3.4\backports’
(This is not everything, however it shows warning messages which give context to what's happening during installation). I then attempt to load tidyverse with:
library(tidyverse)
However, I keep getting the error:
Error in library(tidyverse) : there is no package called ‘tidyverse’
I have been unable to find a fix after hours of googling, uninstalling and reinstalling, etc. If I type the following:
.libPaths()
The following is returned:
[1] "C:/Users/Harbour/Documents/R/win-library/3.4" "C:/Program Files/R/R-
3.4.3/library"
I fear I will soon lose sanity, so any and all help input anyone has is very much appreciated. Thanks!