Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The specified module could not be found in R

Tags:

r

rcpp

I am developing a package using Rcpp and another third party C++ library. When I tried to install the package, I got

Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Users/Admin/Documents/R/win-library/2.15/packagename/libs/i386/package.dll':
   LoadLibrary failure:  The specified module could not be found.

In 32-bit Windows OS, following an advice from my colleague, I fixed the problem by adding location of following dlls from MingW to system path.

libgcc_s_dw2-1.dll

But 64-bit Windows, I get the same error even with the dll although I am using 32-bit R.

So my question:

Is there any way to know why The specified module could not be found error occurs? I mean I would like to know which module is missing. Maybe verbose option some where?

like image 781
Tae-Sung Shin Avatar asked Nov 12 '22 17:11

Tae-Sung Shin


1 Answers

There is not an easy way in R to get more information from the error I mentioned. But I found free software to find which dependency the dill is missing by following web site: http://www.dependencywalker.com/

Using the software I was able to find following dlls are needed to be in system path.

GPSVC.dll
IESHIMS.dll
SYSNIFY.dll
like image 120
Tae-Sung Shin Avatar answered Nov 15 '22 07:11

Tae-Sung Shin