[R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) :
Duncan Murdoch
murdoch.duncan at gmail.com
Fri Sep 3 13:59:53 CEST 2010
rajeshj at cse.iitm.ac.in wrote:
> After the R CMD check is done and an R CMD INSTALL is done, where does the external dll have to be?
See my message below.
> ..what can i do to make it move around with the package? can I zip it with the package? if so in what folder?
>
R isn't designed to handle closed source binary includes, but you could
probably install one by putting the right code into Makevars in your
package. You want the .dll to end up in the libs directory of the
installed package. You might be able to get away with this by putting
it into inst/libs, but this is explicitly against the rules.
After-install editing of the .zip file would probably work, but would be
a maintenance problem.
See Writing R Extensions for details.
Duncan Murdoch
> ----- Original Message -----
> From: Duncan Murdoch <murdoch.duncan at gmail.com>
> To: rajeshj at cse.iitm.ac.in
> Cc: r-help <r-help at r-project.org>
> Sent: Thu, 02 Sep 2010 16:42:31 +0530 (IST)
> Subject: Re: [R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) :
>
> On 02/09/2010 6:46 AM, rajeshj at cse.iitm.ac.in wrote:
>
>> It is dependent on another dll but it did not give compilation errors. It seemed to link fine at that point. Why does it have a problem at this stage?
>>
>
> Windows needs to be able to find the other DLL at load time. It will
> find it if it's in the same directory or on the PATH.
>
> Duncan Murdoch
>
>
>> From: "Duncan Murdoch"
>> To: rajeshj at cse.iitm.ac.in
>> Cc: "r-help"
>> Sent: Thursday, September 2, 2010 4:05:14 PM
>> Subject: Re: [R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) :
>>
>> On 02/09/2010 2:29 AM, rajeshj at cse.iitm.ac.in wrote:
>>
>>> Hi,
>>>
>>> I've built my own package in windows and when I run R CMD check Package-Name I get,
>>>
>>> * install options are ' --no-html'
>>> * installing *source* package 'AceTest' ...
>>> ** libs
>>> making DLL ...
>>> g++ ...etc.
>>> installing to
>>> ... done
>>> ** R
>>> ** preparing package for lazy loading
>>> ** help
>>> Warning: ./man/AceTest-package.Rd:34: All text must be in a section
>>> Warning: ./man/AceTest-package.Rd:35: All text must be in a section
>>> *** installing help indices
>>> ** building package indices ...
>>> ** testing if installed package can be loaded
>>> Error in inDL(x, as.logical(local), as.logical(now), ...) :
>>> unable to load shared library 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest/libs/AceTest.dll':
>>> LoadLibrary failure: The specified module could not be found.
>>> ERROR: loading failed
>>>
>> The message "The specified module could not be found" comes from
>> Windows. It probably means that your dll depends on some other dll and
>> the other one is unavailable, but it might mean that AceTest.dll itself
>> can't be loaded (permission problems, defective dll, etc.) In some cases
>> Windows will pop up a dialog box with more information than that skimpy
>> message, e.g. if you install the package and try to run library(AceTest)
>> from within Rgui.
>>
>> Duncan Murdoch
>>
>>
>>
>>> * removing 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest'
>>>
>>>
>>> can someone point out what went wrong?
>>> [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>
>
>
More information about the R-help
mailing list