[R] building a package under windows

Liaw, Andy andy_liaw at merck.com
Tue Oct 26 12:33:10 CEST 2004


I suspect you won't have the problem if you build in a directory (aka
folder) whose path does not contain spaces...  (That is mentioned in
README.package, I believe.)

Andy

> From: Gilles GUILLOT
> 
> After checking paths, it works better.
> But I still have trouble, see  line -5 below : 
> 
> C:\Documents and Settings\guillot\Mes documents\package>R CMD 
> build geneland
> * checking for file 'geneland/DESCRIPTION' ... OK
> * preparing 'geneland':
> * cleaning src
> * removing junk files
> * building 'geneland_1.0.tar.gz'
> 
> 
> C:\Documents and Settings\guillot\Mes documents\package>
> C:\Documents and Settings\guillot\Mes documents\package>
> C:\Documents and Settings\guillot\Mes documents\package>R CMD 
> check geneland
> * checking for working latex ...latex: OK
> * using log directory 'C:/Documents and Settings/guillot/Mes 
> documents/package/g
> eneland.Rcheck'
> * checking for file 'geneland/DESCRIPTION' ... OK
> * checking if this is a source package ... OK
> 
> installing R.css in C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH
> 
> 
> ---------- Making package geneland ------------
>   adding build stamp to DESCRIPTION
>   making DLL ...
> g77 -O2 -Wall   -c Fstat.f -o Fstat.o
> g77 -O2 -Wall   -c MapPosterior.f -o MapPosterior.o
> MapPosterior.f: In subroutine `mapposterior':
> g77 -O2 -Wall   -c algama.f -o algama.o
> g77 -O2 -Wall   -c main.f -o main.o
> main.f: In subroutine `mcmc':
> g77 -O2 -Wall   -c randlib-1.3.f -o randlib-1.3.o
> randlib-1.3.f: In function `ignpoi':
> g77 -O2 -Wall   -c sub.f -o sub.o
> sub.f: In subroutine `rprioru':
> sub.f: In subroutine `upddrift':
> sub.f: In subroutine `upddrift2':
> sub.f: In subroutine `vormove':
> sub.f: In subroutine `updc':
> sub.f: In subroutine `updurw':
> sub.f: In subroutine `updt':
> sub.f: In subroutine `bdpp':
> sub.f: In subroutine `bdclass4':
> sub.f: In subroutine `bdclass5':
> sub.f: In subroutine `bdclass5bis':
> sub.f: In subroutine `sample':
> sub.f: In subroutine `bdclass6':
> sub.f: In subroutine `addfreq6':
> sub.f: In subroutine `bdclass7':
> sub.f: In subroutine `bdclass7bis':
> sub.f: In subroutine `addfreq7':
> sub.f: In subroutine `addfreq7bis':
> sub.f: In subroutine `remfreq7':
> sub.f: In subroutine `remfreq7bis':
> ar cr geneland.a Fstat.o MapPosterior.o algama.o main.o 
> randlib-1.3.o sub.o
> ranlib geneland.a
> windres --include-dir c:/R/rw2000/include  -i geneland_res.rc -o 
> geneland_res.o
> gcc  --shared -s  -o geneland.dll geneland.def geneland.a 
> geneland_res.o  
> -Lc:/R
> /rw2000/src/gnuwin32  -lg2c -lR
>   ... DLL made
>   installing DLL
>   installing R files
>   installing man source files
>   installing indices
>   installing help
>  >>> Building/Updating help pages for package 'geneland'
>      Formats: text html latex example chm
>   Fstat                             text    html    latex   example
>   MapPosterior                      text    html    latex   example
>   PlotDrift                         text    html    latex   example
>   PlotFreq                          text    html    latex   example
>   PlotFreqA                         text    html    latex   example
>   PlotTessellation                  text    html    latex   example
>   Plotnclass                        text    html    latex   example
>   Plotntile                         text    html    latex   example
>   PosteriorMode                     text    html    latex   example
>   mcmcFmodel                        text    html    latex   example
>   rdiscr                            text    html    latex   example
>   setplot                           text    html    latex   example
>   simFmodel                         text    html    latex   example
> make: *** No rule to make target `and'.  Stop.
> *** Installation of geneland failed ***
> 
> Removing 'C:/DOCUME~1/guillot/MESDOC~1/package/GENELA~1.RCH/geneland'
>  ERROR
> Installation failed.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list