[R] Build a package - check error

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Aug 21 15:12:03 CEST 2011



On 21.08.2011 11:29, Erich Neuwirth wrote:
> On 8/20/2011 3:37 PM, Uwe Ligges wrote:
>> ?.First.lib has an example:
>>
>> ## Suppose a package needs to call a DLL named 'fooEXT',
>> ## where 'EXT' is the system-specific extension.  Then you should use
>> .First.lib<- function(lib, pkg)
>>    library.dynam("foo", pkg, lib)
>>
>
> Shouldn't the first line here be
>
>> ## Suppose a package needs to call a DLL named 'foo.EXT',
>                                                       ^


No, since ".dll" is the extension in this case:
See ?.Platform which has an element "dynlib.ext" containing the 
current's platform specific extension.
That one contains the extension such as ".dll", ".so" and so on.

Therefore fooEXT evaluates to foo.so under Linux, for example.

Best,
Uwe










> ______________________________________________
> 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