[R] Re: Cross-building R packages

Gregor GORJANC gregor.gorjanc at bfro.uni-lj.si
Fri Mar 25 09:32:02 CET 2005


Jun hi again!

Sorry for bothering. Although I had no problem with building Windows 
package under Linux, I noticed that man pages are not processed as they 
should or maybe I have a problem with my setup.

My package is called 'GeneticsPed'. Instead of HTML or text files I just 
got a GeneticsPed.Rd.gz in man directory of a package (this is within 
GeneticsPed_0.1.zip file!). The file GeneticsPed.Rd.gz contains is one 
file, where all man pages are in in Rd format. When I install package I 
just get this (GeneticsPed.Rd.gz) file in library.

I understand that I should dig into Makefiles and I tried, but I got lost. 
  I added below the output I got when compiling and there are some errors, 
but as I said I got lost when searching for cause.

Do you or any other from r-help have any clue what is wrong?

$ make pkg-GeneticsPed_0.1
export 
PATH=/home/packages/RCrossBuild/cross-tools/bin:/home/packages/RCrossBuild/cross-tools/mingw32/bin:.:/home/ggorjan/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:.:/home/ggorjan/apiis/apiis/bin:/home/ggorjan/apiis/apiis/../ref_breedprg/bin; 
\
export mypkg=`echo GeneticsPed_0.1 | cut -d'_' -f1,1`; \
cd /home/packages/RCrossBuild/pkgsrc; \
rm -rf $mypkg; \
tar zxf GeneticsPed_0.1.tar.gz; \
echo -------$mypkg------; \
cd /home/packages/RCrossBuild/WinR/R-2.0.1/src/gnuwin32/; \
make PKGDIR=/home/packages/RCrossBuild/pkgsrc 
RLIB=/home/packages/RCrossBuild/WinRlibs STAMP=no HELP=YES pkg-$mypkg; \
mkdir -p /home/packages/RCrossBuild/WinRlibs; \
cd /home/packages/RCrossBuild/WinRlibs; \
rm -rf $mypkg.zip; \
zip -rl $mypkg.zip $mypkg -x \*.so \*.dll \*.RData \*.rda \*.zip \*.rds 
\*.pdf \*.ps;\
zip -r9 $mypkg.zip $mypkg -i \*.so \*.dll \*.RData \*.rda \*.zip \*.rds 
\*.pdf \*.ps;\
rm -rf $mypkg
-------GeneticsPed------
make[1]: Entering directory 
`/home/packages/RCrossBuild/WinR/R-2.0.1/src/gnuwin32'

---------- Making package GeneticsPed ------------
   adding build stamp to DESCRIPTION
   installing R files
   installing man source files
   installing indices
cat: /home/packages/RCrossBuild/WinR/R-2.0.1/library/*/CONTENTS: No such 
file or directory
make[3]: *** [indices] Error 1
make[2]: *** [all] Error 2
make[1]: *** [pkg-GeneticsPed] Error 2
make[1]: Leaving directory 
`/home/packages/RCrossBuild/WinR/R-2.0.1/src/gnuwin32'
   adding: GeneticsPed/ (stored 0%)
   adding: GeneticsPed/DESCRIPTION (deflated 39%)
   adding: GeneticsPed/Meta/ (stored 0%)
   adding: GeneticsPed/R/ (stored 0%)
   adding: GeneticsPed/R/GeneticsPed (deflated 77%)
   adding: GeneticsPed/man/ (stored 0%)
   adding: GeneticsPed/man/GeneticsPed.Rd.gz     zip warning: -l used on 
binary file
  (stored 0%)
   adding: GeneticsPed/CONTENTS (deflated 74%)
   adding: GeneticsPed/INDEX (deflated 55%)
   adding: GeneticsPed/Meta/package.rds (deflated 51%)
   adding: GeneticsPed/Meta/Rd.rds (deflated 72%)
   adding: GeneticsPed/Meta/hsearch.rds (deflated 82%)


Jun Yan wrote:
> It's great to know that someone finds it helpful! Thanks for letting us 
> know. We'll keep it updated.
> 
> Jun
> 
> On Thu, 24 Mar 2005, Gregor GORJANC wrote:
> 
> 
>>Hello!
>>
>>I just went thourgh the process of creating a Windows package on my Linux 
>>box and I must say that it took me no longer than 30 minutes to wrap 
>>everything up and that's just because you two put everything together so 
>>nicely. I must say that you've done an excellent work. Keep on going!
>>
>>-- 
>>Lep pozdrav / With regards,
>>     Gregor Gorjanc
>>
>>-----------------------------------------------------------------------
>>University of Ljubljana
>>Biotechnical Faculty        URI: http://www.bfro.uni-lj.si/MR/ggorjan
>>Zootechnical Department     mail: gregor.gorjanc <at> bfro.uni-lj.si
>>Groblje 3                   tel: +386 (0)1 72 17 861
>>SI-1230 Domzale             fax: +386 (0)1 72 17 888
>>Slovenia, Europe
>>-----------------------------------------------------------------------
>>
> 
> 
> 

-- 
Lep pozdrav / With regards,
     Gregor Gorjanc

-----------------------------------------------------------------------
University of Ljubljana
Biotechnical Faculty        URI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department     mail: gregor.gorjanc <at> bfro.uni-lj.si
Groblje 3                   tel: +386 (0)1 72 17 861
SI-1230 Domzale             fax: +386 (0)1 72 17 888
Slovenia, Europe




More information about the R-help mailing list