[Rd] include dll in R-package

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Aug 29 14:35:42 CEST 2012


On 29/08/2012 12:19, Berend Hasselman wrote:
>
> On 29-08-2012, at 05:31, LIYING HUANG wrote:
>
>>
>>
>> Thanks a lot for those examples, is there any example with Fortran
>> source codes which could depend on an external Fortran DLL?
>>
>
> I wouldn't know.
>
> Berend

What does 'depend on' mean here?  (All the context has been removed, 
pace the posting guide.)

If it means 'link to', then any package which uses BLAS or LAPACK is an 
example.  But strictly you cannot link to a DLL (although you can on 
Windows, but on OS X what R calls DLL is not what OS X calls a 'dynamic 
library').

If you want to dynamically load an external DLL then

- there are no Fortran examples on CRAN
- you need to ensure that the DLL is already linked to the Fortran 
runtime (which typically Fortran DLLs are not).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list