[R] installing package in Windows

Karl W. Broman kbroman at jhsph.edu
Wed Mar 8 21:27:45 CET 2000


Could you help me in getting a package to compile from source in Windows?
I'm running Windows NT 4.0 on a pentium 450 with 128 Mb of Ram.  I've got R
1.0.0.

I am developing a package for R which includes a bit of C code.  I have things
working in Unix just fine, and now I want to port it to Windows NT.  

I've been following the instructions in the R complements to Venables and
Ripley's book, "Building from a source-code library under Windows."  I
installed cygwin-20 and gcc-2.95.2, and ran "make pkg-qtl" (qtl is the name of
the package).  

That part works just fine.  But then when I run "make pkgcheck-qtl" I get the
following error.

======================================================================
bash-2.02$ make pkgcheck-qtl
-------- Testing package qtl --------
Running examples in 'qtl-Ex.R' ...
/Programs/R/rw1000/bin/rterm --vanilla R_LIBS="/Programs/R/rw1000/library;" < qtl-Ex.R > qtl-Ex.Rout

make[1]: *** [run] Error 1
make: *** [pkgcheck-qtl] Error 2
bash-2.02$
======================================================================

If, after a long sigh, I run Rgui and just cross my fingers.  Then the first
time I do "library(qtl)", I get the following error.  (No surprise, given the
above.) 

======================================================================
> library(qtl)
Error in dyn.load(x, as.logical(local), as.logical(now)) : 
        unable to load shared library "E:\Programs\R\rw1000/library/qtl/libs/qtl.dll":
  LoadLibrary failure
> library(qtl)
>
======================================================================

When I type "library(qtl)" a second time, I don't get an error, and all of the
R functions which do not call C routines run just fine, though the ones with C
routines give an error like "...C/Fortran function name not in load table."

Any hints on what I should fiddle with next, or what I read next?

One other thing...the "R.h" include file doesn't seem to include the
"R_ext/PrtUtil.h", where Rprintf is defined.  If I wish to use Rprintf, should
I include the latter file; should it have been included in R.h?

Thanks!
karl
-----------------
Karl W Broman
kbroman at jhsph.edu
-----------------

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