[R] Re: Detailed instructions for building packages

Witold Eryk Wolski wolski at molgen.mpg.de
Fri May 3 16:11:53 CEST 2002

Dear Duncan!
I will if i will be able to build a simple package without any C or F 
code on my computer running Windows 2000.
But i am not. And im going more and more frustrated.

I went so far:
1. I generated a skeleton using the function:

After that I edited a little the file R Description and called thinking 
that now the html documents will be generated the install.packages function.

updating HTML package descriptions
Warning message:
argument `lib' is missing: using C:/prog/R/rw1041/library in: 
install.packages("c:/prog/r/rw1041/myfiles/test/masspec", CRAN = NULL)

But than i got this.

 > library(masspec)
Error in library(masspec) : There is no package called `masspec'

With rcmd install
i passed the build process.
but the install fails.

C:\prog\R\rw1041\library>rcmd install masspec

make: Entering directory `/cygdrive/c/prog/r/rw1041/src/gnuwin32'
make DLLNM= \
  -C C:/prog/R/rw1041/library/masspec PKG=masspec RHOME=c:/prog/r/rw1041 
RLIB=c:/prog/r/rw1041/library \
  -f c:/prog/r/rw1041/src/gnuwin32/MakePkg
make: Entering an unknown directory
make: *** C:/prog/R/rw1041/library/masspec: No such file or directory.  
make: Leaving an unknown directory
make: *** [pkg-masspec] Error 2
make: Leaving directory `/cygdrive/c/prog/r/rw1041/src/gnuwin32'
*** Installation of masspec failed ***

I have no C or F code included in my functions!!!

I am really frustrated now. Any help appreciated.
I can't believe that such a basic functionality as building a package 
has to be so complicated. Therefore i am quite sure i have overseen some 
really simple thing.


Duncan Murdoch wrote:

>>I a missing in R extension a more detailed step by step description with=20
>>some examples.
>>To whom send proposals of change to the R extensions manual.  I am also=20
>>willing to writ one step by step descriptin for windows 2000.
>If you would like to draft a detailed section on building packages
>under windows, that would be great.  Once you're done, please email it
>to me (as I'm currently the Windows maintainer); I'll put it (or
>something based on it) into R-exts or elsewhere as appropriate.
>By the way, once all the tools are set up properly, the easiest way to
>build a .zip of your package is
>  Rcmd build --binary sourcedir
>The --use-zip options have to do with compressing files within the
>installation, not compressing the whole installation.
>Duncan Murdoch

    _|_     \|/     \|/
    ´v´     'v´   \\'v'//
  //| |\\ //| |\\   |*|
                               | |
   Eryk Witold Wolski        //.^.\\
wolski at molen.mpg.de             o
tel      : 0049-(0)30-8413-1543 o
fax      : 0049-(0)30-8413-1139 o
mobile   : 0049-1793210931      o

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020503/645e38ab/attachment.html

More information about the R-help mailing list