Tae-Sung Shin Tae-Sung Shin - 1 year ago 101
R Question

The specified module could not be found in R

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.


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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download