[R] R.dll

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Dec 9 19:18:19 CET 1998


On Wed, 9 Dec 1998, Yoon, Hoon (CICG - NY Program Trading) wrote:

>   Is there any docs on R.dll? Or is it "use the source Luke" time? (The NT
> 0.63.1) Can anyone give me pointers on where to look? I am trying to wrap it
> under a GUI. The bdr release has examples, but it seems to be limited in
> scope.

Are there any docs on anything in R?  I think it is a question of reading
the source code, but everything you are likely to need is in
src/gnuwin32/system.c

>   Has anyone compiled R under VC++. I see that the older version has been
> compiled under VC++ at some point. Is this best place to start to see how to
> get the new 0.63.1 compiled?

It may be possible, but I would not do this. For most purposes of R
packages it is just another DLL, and who cares what compiler was used? And
for some (such as calls to unif_rand) you really don't want to know how
each compiler does it.  (Unlike Unix systems with ELF, the format of many
parts of Windows DLLs is just not defined. This includes what fo do with
return values and how small structures are passed, at least.)  From the
point of view of using the DLL from a GUI application, all the interface
is in system.c, but R_Read/WriteConsole is about all you need to cope
with. 
 

Brian 

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list