[R] data.table package problem

David Winsemius dwinsemius at comcast.net
Sat Jun 20 18:52:37 CEST 2015


On Jun 20, 2015, at 5:00 AM, Eddie Ho wrote:

> Hi all,
>  I am new to R and currently learning through a book. Everything works
> until I try package "data.table". I am using R3.2.1 and RStudio 0.99.441.
> Package "data.table" is version 1.9.4.
> 
>> require(data.table)
> Loading required package: data.table data.table 1.9.4
> For help type: ?data.table *** NB: by=.EACHI is now explicit. See README to
> restore previous behaviour. Warning message: package ‘data.table’ was built
> under R version 3.2.1
> 
>  The problem is I can't invoke tables()
> 

I'm unable to reproduce on a Mac(Yosemite) with data.table 1.9.4
>> tables()Error in paste("%", nchar(m[1, "NROW"]), "s", sep = "") :
>  4 arguments passed to .Internal(nchar) which requires 3

I don't really know the answer, but there was also an error related to an installation of pkg:forecast that was posted on SO today that has a similar error message about the number of arguments passed to nchar, but that questioner was on version 3.2.0.

http://stackoverflow.com/questions/30955508/r-cannot-load-package-forecast-due-to-namespace-error

I see in the news() that nchar was given a new argument in version 3.2.1 and you got a warning when loading data.table, so I wonder if you may not really have 3.2.1 installed, since you got that warning.

new$Text[ grep("nchar", news$Text) ]

You should post the results of sessionInfo().

-- 
David.


> 
> 
>   or setkey
> 
>> setkey(theDT, D)Error in setkeyv(x, cols, verbose = verbose, physical = physical) :
>  4 arguments passed to .Internal(nchar) which requires 3
> 
> 
>   Would you please help me to investigate what's wrong with my
> installation?
> 
> Thanks,
> Eddie
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list