Cannot load genefilter package from library - r

So I try to load by library(genefilter)
But I keep getting the error:
Error: package or namespace load failed for ‘genefilter’ in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Users/Jerry Yu/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll': LoadLibrary failure: The specified procedure could not be found.
I have already tried removing and reinstalling genefilter, but nothing has worked.

Related

I'm with an error ir R Unable to load librarys in R

I have reinstaled the windows, and now I'm using windows 11, and I'm facing this problems
After turn on the pc and open R this error appear:
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-4.2.1/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The network path was not found.
And then I try to load tidyverse package and this error appear
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.2.1/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The network path was not found.
The R version is 4.2.1

R packages not loading after update (Error: package ‘spatstat.data’ could not be loaded)

I cannot get spatstat to install properly in R.
I have updated R to the newest version(4.1.2) and installed RTools40 following these instructions (https://cran.r-project.org/bin/windows/Rtools/rtools40.html).
I have restarted R several times and tried to install spatstat as well as spatstat data, but whenever I try and call the library, I get the following error
library(spatstat)
Loading required package: spatstat.data
Error: package or namespace load failed for ‘spatstat.data’ 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/i386/stats.dll':
LoadLibrary failure: The specified module could not be found.
Error: package ‘spatstat.data’ could not be loaded
library(spatstat.data)
Error: package or namespace load failed for ‘spatstat.data’ 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/i386/stats.dll':
LoadLibrary failure: The specified module could not be found.```
Small update:
I've tried this for other tools as well and I'm getting the same error.
Example:
library(GISTools)
Loading required package: maptools
Loading required package: sp
Error: package or namespace load failed for ‘sp’ 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/i386/stats.dll':
LoadLibrary failure: The specified module could not be found.
Error: package ‘sp’ could not be loaded
library(sp)
Error: package or namespace load failed for ‘sp’ 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/i386/stats.dll':
LoadLibrary failure: The specified module could not be found.
Another update: I now get this error when I start R.
Looks like something is weird with your R installation. Is it an option to remove R, restart and install it again? Do recommend packages even work? E.g. library(MASS)?
I needed to delete the .Renviron file that was created and then everything worked

Loading olsrr and getting a U_FILE_ACCESS_ERROR

This is the error message I'm getting when I try to load the package. It says it is installed but when I try to load it and use it, it doesn't work.
Error: package or namespace load failed for ‘olsrr’ in inDL(x,
as.logical(local), as.logical(now), ...): ICU init failed:
U_FILE_ACCESS_ERROR
Any idea?
My code:

Issues when starting up RStudio

Just installed R and Rstudio on my laptop, but keep running into this error messages in the console tab. Should I be worried?
Here is the error message:
Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.0/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
During startup
- Warning message:
package ‘stats’ in options("defaultPackages") was not found
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-4.0.0/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
The following workaround worked for me.
After all the installs as recommended try this last step.
"Change the name of the .Reviron file in probably your Documents folder to anything else so that it is not found by the code."
This was created for rtools. I renamed it .Renvironx

package or namespace load failed when trying to load 'stats' package in R

I have been trying to work with a git repository and my R 3.6.3 keeps giving me error messages. I have tried reinstalling both R and the stats package, installing Rtools, copying the stats directory from the R folder in other clients but none of seem to be working. The stats package is still found among my packages but R keeps failing to load the .dll file.
The exact error I get is:
Error message: Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Program Files/R/R-3.6.3/library/stats/libs/x64/stats.dll': LoadLibrary failure: The specified module could not be found. During startup - Warning message: package ‘stats’ in options("defaultPackages") was not found Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Program Files/R/R-3.6.3/library/stats/libs/x64/stats.dll':

Resources