
After the R CMD check is done and an R CMD INSTALL is done, where does the external dll have to be?..what can i do to make it move around with the package? can I zip it with the package? if so in what folder?

----- Original Message -----
From: Duncan Murdoch <murdoch.duncan@gmail.com>
To: rajeshj@cse.iitm.ac.in
Cc: r-help <r-help@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@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@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@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@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. 
> 
> 


	[[alternative HTML version deleted]]

