I'm new to R switching from SAS and I'm getting frustrated because I can't seem to load the tidyverse library. I have installed the latest version of R and then RStudio and then Rtools40-x86_64.
Here is my code and error messages:
install.packages("tidyverse", type = "source")
Installing package into ‘C:/Users/Mike/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.0.tar.gz'
Content type 'application/x-gzip' length 712837 bytes (696 KB)
downloaded 696 KB
- installing source package 'tidyverse' ...
** package 'tidyverse' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'tidyverse'
finding HTML links ... done
tidyverse-package html
tidyverse_conflicts html
tidyverse_deps html
tidyverse_logo html
tidyverse_packages html
tidyverse_sitrep html
tidyverse_update html
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path - DONE (tidyverse)
The downloaded source packages are in
‘C:\Users\Mike\AppData\Local\Temp\RtmpGEGI58\downloaded_packages’
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.3/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
I'm sure it is something simple but being new to R I just can't get passed this error. Can anyone please help.
Thanks in advance