[R] error from building a package

Duncan Murdoch murdoch at stats.uwo.ca
Fri Apr 11 12:41:37 CEST 2008


On 11/04/2008 3:59 AM, Aimin Yan wrote:
> I am trying someone's example to build a R package,
> but I get some errors, Can someone help me to figure it out?

There is one error with a fairly clear error message:

 > Error in firstlib(which.lib.loc, package) :
 >    Tcl/Tk support is not available on this system

and one warning:

 > Found the following sources/headers with CR or CRLF line endings:
 >    src/fifrt.c
 >    src/fthrt.f
 > Some Unix compilers require LF line endings.

What do you find unclear about the messages?  You don't have Tcl/Tk 
support, but something you are doing requires it; you have used ASCII 
standard text files (as on Windows) or possibly the weird files that 
used to be used on MacOS, rather than following the Unix conventions 
that some systems need.

Duncan Murdoch

> 
> thanks,
> 
> 
> * using log directory '/home/aiminy/myrpackages/roots.Rcheck'
> * using R version 2.6.1 (2007-11-26)
> * checking for file 'roots/DESCRIPTION' ... OK
> * this is package 'roots' version '0.1-1'
> * checking package dependencies ... OK
> * checking if this is a source package ... WARNING
> Subdirectory 'roots/src' contains object files.
> * checking whether package 'roots' can be installed ... OK
> * checking package directory ... OK
> * checking for portable file names ... OK
> * checking for sufficient/correct file permissions ... OK
> * checking DESCRIPTION meta-information ... OK
> * checking top-level files ... OK
> * checking index information ... OK
> * checking package subdirectories ... OK
> * checking R files for non-ASCII characters ... OK
> * checking R files for syntax errors ... OK
> * checking whether the package can be loaded ... OK
> * checking whether the package can be loaded with stated dependencies ... OK
> * checking for unstated dependencies in R code ... OK
> * checking S3 generic/method consistency ... OK
> * checking replacement functions ... OK
> * checking foreign function calls ... OK
> * checking R code for possible problems ... NOTE
> Error in firstlib(which.lib.loc, package) :
>    Tcl/Tk support is not available on this system
> * checking Rd files ... OK
> * checking Rd cross-references ... OK
> * checking for missing documentation entries ... OK
> * checking for code/documentation mismatches ... OK
> * checking Rd \usage sections ... OK
> * checking data for non-ASCII characters ... OK
> * checking line endings in C/C++/Fortran sources/headers ... WARNING
> Found the following sources/headers with CR or CRLF line endings:
>    src/fifrt.c
>    src/fthrt.f
> Some Unix compilers require LF line endings.
> * checking line endings in Makefiles ... OK
> * checking for portable use of $BLAS_LIBS ... OK
> * creating roots-Ex.R ... OK
> * checking examples ... OK
> * creating roots-manual.tex ... OK
> * checking roots-manual.tex ... OK
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list