Hi so I'm having trouble with R studios on my desktop where it won't let me open any packages.
When I attempt to install a package with install.packages() like Tidyverse
I get this error.
Error in library("tidyverse") : there is no package called ‘tidyverse’ Show in New Window Error in install.Rtools() : could not find function "install.Rtools" Show in New Window WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/athen/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/tidyverse_1.3.1.zip' Content type 'application/zip' length 430128 bytes (420 KB) downloaded 420 KB
Then when I try to load the package into my library with library("tidyverse") I receive this error
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.1.2/library/stats/libs/x64/stats.dll': LoadLibrary failure: The specified module could not be found.
This error isn't just for tidyverse
but all packages I try to run. I have uninstalled R and RStudios multiple times, but the error doesn't go away. I have been to IT at my university and they were completely baffled. Please help if you can, I really need R to work for both my job and classes.