[R] Error while making R package

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat May 10 18:24:09 CEST 2008



Vidhu Choudhary wrote:
> Hi All,
> *I am still facing the problems in making R package on windows. *
> ====================================================
> 
> ---------- Making package t1 ------------
>   adding build stamp to DESCRIPTION
>   installing NAMESPACE file and metadata
>   making DLL ...
> making CGHseg_rewrite.d from CGHseg_rewrite.c
> making rowMedians.d from rowMedians.c
> making runavg.d from runavg.c
> gcc-sjlj  -std=gnu99  -IC:/R/R-2.6.2/include     -O3 -Wall  -c
> CGHseg_rewrite.c -o CGHseg_rewrite.o
> gcc-sjlj  -std=gnu99  -IC:/R/R-2.6.2/include     -O3 -Wall  -c rowMedians.c
> -o rowMedians.o
> gcc-sjlj  -std=gnu99  -IC:/R/R-2.6.2/include     -O3 -Wall  -c runavg.c -o
> runavg.o
> windres --preprocessor="gcc-sjlj -E -xc -DRC_INVOKED" -I
> C:/R/R-2.6.2/include  -i t1_res.rc -o t1_res.
> o
> gcc-sjlj  -std=gnu99  -shared -s  -o t1.dll t1.def CGHseg_rewrite.o
> rowMedians.o runavg.o t1_res.o  -L
> C:/R/R-2.6.2/bin    -lR
>   ... DLL made
>   installing DLL
>   installing R files
>   installing data files
> rm: failed to get attributes of `/': No such file or directory

Do you have the recent Rtools and none else?
Where is the package located and how do you invoke the install command?

I have no further ideas. It works for me some lines further on but I do 
not have all 120 or so packages installed that are required (although I 
do have all CRAN and BioC packages for R-2.7.x for Windows installed).

Uwe Ligges




> make[2]: *** [c:/R/R-2.6.2/library/t1/data] Error 1
> make[1]: *** [all] Error 2
> make: *** [pkg-t1] Error 2
> *** Installation of t1 failed ***
> 
> Removing 'c:/R/R-2.6.2/library/t1'
> Restoring previous 'c:/R/R-2.6.2/library/t1'
> ========================================================================
> *I have made registry changes also as per the link :
> https://stat.ethz.ch/pipermail/r-devel/2008-January/048059.html
> *
> *I can successfully make the package on Linux. *
> 
> But when I try to R CMD INSTALL on windows( package made in linux) I get the
> same error of
> rm: failed to get attributes of `/': No such file or directory
> make[2]: *** [c:/R/R-2.6.2/library/t1/data] Error 1
> 
> I am attaching the .tar file made on windows2000
> 
> 
> Thank you
> Best Regards
> Vidhu



More information about the R-help mailing list