Tarca Adi Laurentiu
2004-Jun-15 23:08 UTC
[R] building R libraries (windows) - R CMD check problems
Hi everyone, I am trying to build a R library called nnNorm but I have some troubles checking and installing it. Here is the setup: If I don't use a inst\doc directory(with the vignettes files) in my source, the install step is working fine: C:\test>RCMD INSTALL nnNorm ---------- Making package nnNorm ------------ adding build stamp to DESCRIPTION installing R files installing man source files installing indices installing help >>> Building/Updating help pages for package 'nnNorm' Formats: text html latex example compNorm text html latex example maNormNN text html latex example nnNorm-internal text html latex >>> Building/Updating help pages for package 'nnNorm' Formats: chm adding MD5 sums * DONE I do verify the .html documentation and all looks great. However, by just adding the directory inst\doc containing the nnNorm.Rnw and nnNorm.bib files when I try to install again I receive the following error: ---------- Making package nnNorm ------------ adding build stamp to DESCRIPTION installing R files installing inst files FIND : format incorrect de paramètre make[2]: *** [C:/R/rw1090/library/nnNorm/inst] Error 2 make[1]: *** [all] Error 2 make: *** [pkg-nnNorm] Error 2 *** Installation of nnNorm failed *** The second trouble (perhaps related with this one) is when I perform the RCMD check. ---------- Making package nnNorm ------------ adding build stamp to DESCRIPTION installing R files installing inst files FIND : format incorrect de paramètre make[2]: *** [C:/test/nnNorm.Rcheck/nnNorm/inst] Error 2 make[1]: *** [all] Error 2 make: *** [pkg-nnNorm] Error 2 *** Installation of nnNorm failed *** * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking package dependencies ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for syntax errors ... OK * checking R files for library.dynam ... OK * checking S3 generic/method consistency ... OK * checking for replacement functions with final arg not named 'value' ... OK * checking foreign function calls ... OK * checking Rd files ... ERROR Rd files with unbalanced braces: man/compNorm.Rd man/maNormNN.Rd man/nnNorm-internal.Rd Unbalanced braces are Rd syntax errors, and result in incorrect documentation. It points me to unbalanced braces, but there are no such error. I tried using simple .Rd file with like: \name{functionName} \eof but I still get the same error. The .Rwn file is ok because the vignettes creation works smoothly: C:\test>RCMD build nnNorm * checking for file 'nnNorm/DESCRIPTION' ... OK * preparing 'nnNorm': * checking whether 'INDEX' is up-to-date ... OK * creating vignettes ... OK * removing junk files * building 'nnNorm_1.0.tar.gz' Has anyone an idea what the problem might be ? I am using Win XP, R 1.9.0. Thanks, Laurentiu Tarca [[alternative HTML version deleted]]
Duncan Murdoch
2004-Jun-15 23:20 UTC
[R] building R libraries (windows) - R CMD check problems
On Tue, 15 Jun 2004 19:08:33 -0400, Tarca Adi Laurentiu <ltarca at rsvs.ulaval.ca> wrote:>I am trying to build a R library called nnNorm but I have some troubles >checking and installing it....> >---------- Making package nnNorm ------------ > adding build stamp to DESCRIPTION > installing R files > installing inst files >FIND : format incorrect de param??treYou've got a problem with your PATH. "find.exe" is one of the programs in the package of tools that Brian Ripley put together, but you're trying to execute some other FIND program. You need to set up the path as described in $RHOME/readme.packages. Duncan Murdoch