library(copula)
I think I have installed the package copula with R. I can see it in installed packages. But when I try to use it, it gives the error below. I don't understand this. What should I do to make it right?
Error: package or namespace load failed for ‘copula’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'D:/R-4.0.0/library/gsl/libs/x64/gsl.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘copula’ was built under R version 4.0.3
Related
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
While i am trying to load library Raster i am getting error as follow:
Error: package or namespace load failed for ‘raster’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/A132054/OneDrive/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘raster’ was built under R version 4.0.2
It was working fine earlier and other system as well.
I would reinstall raster after first reinstalling the packages it uses.
install.packages(c("Rcpp", "rgdal", "sp", "terra", "raster"))
It would be even better to first install R 4.0.2
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':
I am New to R and stackoverflow. The problem I am facing is that when I try to load dplyr from packages it gives me below error
library(dplyr)
Error: package or namespace load failed for ‘dplyr’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/mhashim/Documents/R/win-library/3.4/rlang/libs/x64/rlang.dll':
LoadLibrary failure: Access is denied.
In addition: Warning message:
package ‘dplyr’ was built under R version 3.4.4
I have tried changing the library path
.libPaths( c( .libPaths(), "C:/new_software/Rpackages") ) but doesn't help.
I am working on a churn project and came across a J48 tree function. The asked packages were RWeka and party. But when I am loading library(RWeka), I am getting an error
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/joe.main/Documents/R/win-library/3.3/rJava/libs/i386/rJava.dll':
LoadLibrary failure: The specified module could not be found.
In addition: Warning message:
package ‘RWeka’ was built under R version 3.3.1
Error: package or namespace load failed for ‘RWeka’
Any workaround for this issue?
It was an issue of JAVA_HOME> It worked once I removed it from the Path in Environmental Variables