[R] trouble with R CMD INSTALL for building my own library

Timothy H. Keitt tklistaddr at keittlab.bio.sunysb.edu
Thu Dec 6 16:20:32 CET 2001

Yup. that was it. I looked at the INSTALL code and it checks for a 'man' 
directory to determine whether or not its a binary package. Perhaps the 
make process could put a '.binary' file in the package root and the 
INSTALL code could check for that instead?


jonathan_li at agilent.com wrote:

>Hi all,
>Problem solved!
>Thanks to a suggestion by Robert Gentleman, I realized that there may be
>something that makes R think that mylib is a binary rather than source
>package. I downloaded Brian Ripley's tree source package and basically
>copied each directory. As it turns out, I have not put in a mylib/man
>subdirectory (I thought I could add it any time later.) and R was then
>tricked to believe that mylib is a binary! Once I add an empty mylib/man
>subdirectory, things become normal with compiling etc. Timothy, I think that
>your problem is likely to be the same source then. 
>-----Original Message-----
>From: Kurt Hornik [mailto:Kurt.Hornik at ci.tuwien.ac.at]
>Sent: Tuesday, December 04, 2001 11:22 PM
>To: Jonathan Li
>Cc: r-help at stat.math.ethz.ch
>Subject: Re: [R] trouble with R CMD INSTALL for building my own library
>>>>>>Jonathan Li writes:
>>I have built a library that consists of a piece of C code and some R
>>functions.  To build it into a library that I can load using library()
>>command, I have followed "Writing R Extensions" and made
>>sub-directories such as mylib/R and mylib/src.
>It actually is 'package' and not 'library'.
>>But when I run R CMD INSTALL mylib, nothing seems to be happening with
>>src directory, i.e., no C compiling. I have probably missed some key
>>steps. But after reading very carefully "Writing R Extension", I
>>conclude that I don't need to write my own Makefile in src since R CMD
>>INSTALL will use the default in /usr/lib/R/etc/Makeconf Here is a copy
>>of Makeconf file. In addition, R CMD check and R CMD build all ran
>>without running "make". Is this the way it is supposed to be?  (no
>>error messages encountered).
>Sounds strange.  You really have
>	mylib/src/foo.c
>(note the extension!) and nothing happens?

Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626

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