I am trying to use my GPU (GeForce GTX 770, CC 3.0) in R. I am using R 3.1.2. I have successfully installed CUDA that I use in non R projects. Now, I just installed rpud and rpudplus from the .zip file in my R environment.
install.packages("C:/Users/Windows/Desktop/R/rpux_0.5.0/rpud_0.5.0.zip",
repos = NULL)
package ‘rpud’ successfully unpacked and MD5 sums checked
And when I try to use it :
require(rpud)
Loading required package: rpud
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-3.1.2/library/rpud/libs/x64/rpud.dll':
LoadLibrary failure: Cannot find file (Le module spécifié est introuvable.)
However, the .dll is in the specified path!
The error message "cannot find file" is incomplete. It actually means that "cannot find all dependency lib of the file". In this case, it most likely means that the expected CUDA version is not found.
For rpud v0.5.0, it MUST have CUDA 6.5 installed in the system. For rpud v0.5.1, it MUST have CUDA 7.0 instead.
Related
So I installed the 'tidyverse' and 'here' packages from the Install Packages subheader under Tools, and when I try to run the following:
library(tidyverse)
library(here)
I receive an error stating:
Error: package or namespace load failed for ‘tidyverse’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/resha/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 ‘tidyverse’ was built under R version 4.0.2
Note that my working directory here is "C:/Users/resha/OneDrive/Desktop/STA238 R Documents/Tutorial 0 Files" which is different from 'C:/Users/resha/OneDrive/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll' that appears in the error message. Any help please?
It seems there are two steps:
You need to rebuilt your packages under your current R version (your warning message says "package ‘tidyverse’ was built under R version 4.0.2", so you have probably upgraded or downgraded R or used R on another PC with the same shared library on OneDrive?). So please run in your R console:
update.packages(checkBuilt = TRUE, ask = FALSE)
You have your R library on a shared drive on your OneDrive, not your local PC, so:
make sure you have network connection
or make that folder accessible while offline (in your File Explorer right-click on C:/Users/resha/OneDrive/Documents/R/ folder and select "Always keep on this device").
I'm trying to install Rmpi package in R on windows8. the R version is 3.4.3 .
I got this message
install.packages("C:/Users/Mariya/Desktop/Rmpi_0.6-6.zip", repos = NULL, type = "win.binary")package ‘Rmpi’ successfully unpacked and MD5 sums checked
when I wanted to run this library I got this message :
The procedure entry point MPI_COMM_SPLIT_TYPE could not be located in the dynamic link library
c: user/.../R/win-library/3.4/Rmpi/libs/X64/Rmpi.dll
and when I click ok, I got this error in cosole:
library(Rmpi)
Error: package or namespace load failed for ‘Rmpi’:.onLoad failed in loadNamespace() for 'Rmpi', details:call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/Mariya/Documents/R/win-library/3.4/Rmpi/libs/x64/Rmpi.dll'/LoadLibrary failure: The specified procedure could not be found.
I had ms-mpi in my computer, I removed it and installed MPICH2 that is told here http://www.stats.uwo.ca/faculty/yu/Rmpi/windows2.htm
and then install Rmpi, but I got error again.
I send an email to the writer package Dr Hao Yu and found the solution.
I remove the MpiCH2 ,install msmpi and follow these Instructions : http://www.stats.uwo.ca/faculty/yu/Rmpi/
I have installed the packages psych and ggplot2 in Rstudio. However I am not able to load these packages because I keep getting these error messages:
library("psych", lib.loc="~/R/win-library/3.3")
Error in runHook(".onLoad", env, package.lib, package) :
cannot open file 'C:/Users/Ernstsen/Documents/R/win-library/3.3/mnormt/R/mnormt.rdb': No such file or directory
Error: package or namespace load failed for ‘psych’
> library("ggplot2", lib.loc="~/R/win-library/3.3")
Error in library.dynam(lib, package, package.lib) :
DLL ‘colorspace’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘ggplot2’
And this error:
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Ernstsen\AppData\Local\Temp\RtmpoTRXOY\downloaded_packages
> library("ggplot2", lib.loc="~/R/win-library/3.3")
Error in library.dynam(lib, package, package.lib) :
DLL ‘colorspace’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘ggplot2’
I have tried installing Rcpp, reinstalling R and Rstudio, using install.packages('ggplot2', dependencies = TRUE) for both packages, I'm not sure what else I can do. This program was working fine on my older computer before it died.
There are several causes why this can happen, and on Windows there's the permissions issue if your R install directory was Administrator privileges and/or was under "C:\Program Files" or "C:\Program Files (x86)". Trying to install and maintain packages under those is a nightmare - constant permissions issues.
Moving your R package directory instead to your ~ is a good idea, esp. if you installed as Administrator, or use one of the more permissions-freakish licenses like Windows Business/Enterprise.
I use R version 3.0.3. I was not able to install library(xlsx). Error message:
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Program Files/R/R-3.0.3/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure: The specified module could not be found.
I then tried to install rjava on its own. Got the error message below:
library("rJava", lib.loc="C:/Program Files/R/R-3.0.3/library")
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Program Files/R/R-3.0.3/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure: The specified module could not be found.
Is there another way to load excel file in R?
Here are some possible solutions:
Install 64-bit version of Java. Here is the download link of Java.
Re-install rJava.
Manually set the directory of your Java location by setting it before loading the library
Sys.setenv(JAVA_HOME="C:\\Program Files\\Java\\jre7") # for 64-bit version
Sys.setenv(JAVA_HOME="C:\\Program Files (x86)\\Java\\jre7") # for 32-bit version
library(rJava)
Source: here
This problem is generally caused by x86 vs x64 bit differences between the R session and the install Java edition. By default Java installs the x86 version and you have to search for the x64 version. if you look at the version of Java you have installed and then open your R session to the same if your using R studio you can click on Tools.GlobalOptions and then select the version you need. ;-)
For mac user, installing Java for OS X 2014-001 works for me
https://support.apple.com/kb/DL1572?locale=en_US
For Windows 10 Pro users 64 bit OS, use
Sys.setenv(JAVA_HOME="C:\\Program Files\\Java\\jre1.8.0_144")
install.packages("openxlsx") try to install OPENXLSX instead of XLSX package. Now, the required library will work properly. library(openxlsx)
For MAC OS X follow these steps in order:
Use this command in the Terminal: sudo R CMD javareconf
Restart BaseR and RStudio...
in RStudio console: install.packages("xlConnect")
in RStudio console: library(xlConnect)
in RStudio console: library(xlsx)
Problem solved!
Any ideas how I can install RTidyHTML when I get the following error message?
install.packages("RTidyHTML", repos = "http://www.omegahat.org/R", type="source")
trying URL 'http://www.omegahat.org/R/src/contrib/RTidyHTML_0.2-1.tar.gz'
Content type 'application/x-gzip' length 554953 bytes (541 Kb)
opened URL
==================================================
downloaded 541 Kb
* installing *source* package ‘RTidyHTML’ ...
./configure: line 3: make: command not found
ERROR: configuration failed for package ‘RTidyHTML’
* removing ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/RTidyHTML’
You need to install XCode on your Mac if you want to compile from source. (Roman's comment only applies to Windows machines.) I just tried installing it on an XCode-equipped Mac running R 2.13.0 and get first a warning during compliation
ld warning: in libtidy/libtidy.a, file is not of required architecture
installing to /Library/Frameworks/R.framework/Versions/2.13/Resources/library/RTidyHTML/libs/x86_64
... and then get an error during the test load that is part of the install script:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/RTidyHTML/libs/x86_64/RTidyHTML.so':
dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/RTidyHTML/libs/x86_64/RTidyHTML.so, 6): Symbol not found: _tidyBufFree
Referenced from: /Library/Frameworks/R.framework/Versions/2.13/Resources/library/RTidyHTML/libs/x86_64/RTidyHTML.so
Expected in: dynamic lookup
I suppose it is possible that it may compile under a 32 bit version of R on the Mac.64-bit. See Simon Urbanek's web page: for more specifics and some installers for other packages.
EDIT: Installation while running 32bit R from the GUI was successful with a current R (version 2.13.1 RC (2011-07-03 r56263) )