[R] dlls

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 30 11:33:22 CEST 2004


On Fri, 30 Apr 2004, Ben.Flood wrote:

> 	I am trying to run an algorithm in a large dataset and want to speed
> this process up by using C/C++ functions.  I have been attempting to create
> a dll library using Microsoft Visual C++ in Windows and call that using
> dyn.load("file.dll") but when I use is.loaded("function") I invariably get
> FALSE.  
> 	If anybody has done this and could give me more detailed
> instructions it would be very much appreciated,

It's a `Microsoft Visual C++ in Windows' issue, not an R issue.  I expect
you are not exporting any entry points (the default under that `system',
amazingly): readme.packages tells you how to use VC++ in detail, and there
are worked examples in the on-line complements to `S Programming'.

Do you have a very good reason to make things difficult for yourself by 
not using the recommended compilers?  Just a thought ....

-- 
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-help mailing list