I am developping R packages with Rstudio. Until now, I used R 3.1.2 and all worked fine. Recently I have updated R to 3.2.0 version and I have updated the packages too. Now, when loading devtools:
> library(devtools)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Documents and Settings/cruiz.CREAL/Mis documentos/R/win-library/3.2/git2r/libs/i386/git2r.dll':
LoadLibrary failure: No se encontró el proceso especificado.
Error: package or namespace load failed for ‘devtools’
I have reinstalled devtools and git2r with biocLite and with install.packages and it didn't work. This file already exists and it is on this path.
My R session Info:
R version 3.2.0 (2015-04-16)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows XP (build 2600) Service Pack 3
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252
[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.2.0
Thank you very much!
I suggest the following:
remove.packages(c("git2r", "devtools", "rversions")).
Use the information from my answer on this post -- R - Error installing Devtools in Windows to reinstall devtools. This should also reinstall the needed dependencies.
Related
I'm trying to install Rmpi on my macbook. However, I keep running into this error where Rmpi.so cannot be loaded. When I tried to load Rmpi, this is the error:
Error: package or namespace load failed for ‘Rmpi’:
.onLoad failed in loadNamespace() for 'Rmpi', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rmpi/libs/Rmpi.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rmpi/libs/Rmpi.so, 6): Symbol not found: _ompi_mpi_2int
Referenced from: /Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rmpi/libs/Rmpi.so
Expected in: flat namespace
in /Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rmpi/libs/Rmpi.so
The steps that I took was as follow: First I installed openmpi
brew install open-mpi
Then I installed Rmpi as follow:
R CMD INSTALL Rmpi_0.6-9.2.tar.gz --configure-args="--with-Rmpi-include=/opt/homebrew/include --with-Rmpi-libpath=/opt/homebrew/lib --with-Rmpi-type=OPENMPI" --no-test-load
I've tried to export the LD_LIBRARY_PATH to /Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rmpi/libs/Rmpi.so but this does not work either. Is there a way to fix this?
this is my session info:
R version 4.2.0 (2022-04-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.6.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.0 parallel_4.2.0 tools_4.2.0
I just started with Rstudio programming and I have some issues with XLConnect.
I was able to install "XLConnect" package, then tried to load the "XLConnect" library and got an error as below.
library(XLConnect)
ERROR: package or namespace load failed for'XLconnect':
.onload failed in loadNamespace() for XLConnect, details:
Call. System2("cat",c("/etc/*-release"), stdout =TRUE, stderr = TRUE) error: ' "cat" not found.
sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=Italian_Switzerland.1252 LC_CTYPE=Italian_Switzerland.1252 LC_MONETARY=Italian_Switzerland.1252 LC_NUMERIC=C
[5] LC_TIME=Italian_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.0 tools_4.1.0 rJava_1.0-4
Any help would be really appreciated!
Thanks
This is a bug in XLConnect 1.0.3, where it requires cat to be installed on Windows. We fixed it in 1.0.4, so upgrading is the easiest way to fix the problem.
If for some reason you can't upgrade, you may try to install cat on Windows, e.g. using MINGW-w64.
See https://github.com/miraisolutions/xlconnect/issues/132 for the discussion.
I have a new laptop that was working with R and R studio and then after updating packages I have run into continual issues loading or installing R packages in R studio.
I have tried to uninstall R and R studio deleted all folders associated and then re-installed.
removing and re-installing rlang however it keeps coming up as not properly installed.
Checked my .libPath ()
My question is how do you make sure you have closed everything so you do not have any .dll file open and then therefore so that the installer can overwrite .dll? will this solve my issue?
Restarting R session...
> .libPaths()
[1] "C:/R-4.0.4/library"
> install.packages("rlang")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlang_0.4.10.zip'
Content type 'application/zip' length 1181510 bytes (1.1 MB)
downloaded 1.1 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\dhiam\AppData\Local\Temp\RtmpuiHNNP\downloaded_packages
> tools::checkMD5sums("rlang")
[1] TRUE
> library(rlang)
Error: package or namespace load failed for ‘rlang’:
.onLoad failed in loadNamespace() for 'rlang', details:
call: NULL
error: The rlang package is not properly installed.
The DLL version does not correspond to the package version.
Please update rlang to the latest version.
Updating packages on Windows requires precautions:
<https://github.com/jennybc/what-they-forgot/issues/62>
> sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=English_xx.1252 LC_CTYPE=English_xx.1252 LC_MONETARY=English_xx.1252
[4] LC_NUMERIC=C LC_TIME=English_xx.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.4 tools_4.0.4 gtable_0.3.0 grid_4.0.4
Please also note, I do not have admin rights to this computer (as it is work laptop).
New job gave me a fresh Windows laptop where I am struggling (to say the very least) to set up a fresh R environment. Specifically, when developing a package, the commmand Install and Restart exits abruptly due to permission issues on a specific .dll file.
==> Rcmd.exe INSTALL --no-multiarch --with-keep.source --install-tests curl
* installing to library 'C:/R/R-Library'
* installing *source* package 'curl' ...
ERROR: cannot remove earlier installation, is it in use?
* removing 'C:/R/R-Library/curl'
* restoring previous 'C:/R/R-Library/curl'
Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
problem copying C:\R\R-Library\00LOCK-curl\curl\libs\x64\curl.dll to C:\R\R-Library\curl\libs\x64\curl.dll: Permission denied
Exited with status 1.
As a first attempt to ameliorate the issue, I've moved both my R installation and library at C:/. This obviously seems not to be enough.
> .libPaths()
[1] "C:/R/R-Library" "C:/R/R-4.0.3/library"
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.3 tools_4.0.3
I am kind of lost as to where to look next. As a last shot in the dark I've tried to run RStudio with Admin right with no luck.
I have been trying to install RQuantLib in RStudio but want to know if someone found a workaround to get it up and running in MAC OSX Mavericks:
I have downloaded the OS X Snow Leopard binaries (because Mavericks are not available) from:
CRAN
When I run the following code, it says I have installed the package:
install.packages("/Volumes/3TB/R/RQuantLib_0.3.12.tgz", repos = NULL, type='source')
* installing *binary* package ‘RQuantLib’ ...
* DONE (RQuantLib)
However, when i try to load it, it fails:
library("RQuantLib")
Error : .onLoad failed in loadNamespace() for 'RQuantLib', details:
call: if (is.character(qc) && nchar(qc) > 1) {
error: missing value where TRUE/FALSE needed
In addition: Warning message:
running command 'bash -c 'type -p quantlib-config' 2>/dev/null' had status 1
Error: package or namespace load failed for ‘RQuantLib’
Can someone please help me out ?
Session info:
sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] blotter_0.8.19 grid_3.1.2 lattice_0.20-29 quantstrat_0.8.2 Rcpp_0.11.4 tools_3.1.2 zoo_1.7-11
You need to first install QuantLib on your computer in order to use RQuantLib.