[R] data.table error

David Winsemius dwinsemius at comcast.net
Thu Apr 29 22:00:33 CEST 2010


On Apr 29, 2010, at 3:49 PM, johannes rara wrote:

> Thanks for the quick response. I tried to install from R-Forge but it
> seems that data.table is not currently available?
>
>> install.packages("data.table",repos="http://R-Forge.R-project.org")
> Warning: unable to access index for repository
> http://R-Forge.R-project.org/bin/macosx/universal/contrib/2.10
> Warning message:
> In getDependencies(pkgs, dependencies, available, lib) :
>  package ‘data.table’ is not available

Try installing from source?

(Worked for me just now from within the 64 bit 2.10.1 Mac R using the  
GUI Installer with "Other repository" and http://R-Forge.R- 
project.org/ )

(Also, the warnings did not appear.)

-- 
David.

>>
>
> -J
>
> 2010/4/29 Tom Short <tshort.rlists at gmail.com>:
>> Johannes, please try the latest version on R-forge (1.4). That error
>> has been fixed, and it's much faster. We hope to have that to CRAN
>> reasonably soon.
>>
>> To install, use:
>>
>>  install.packages("data.table",repos="http://R-Forge.R-project.org")
>>
>> - Tom
>>
>> Tom Short
>>
>> On Thu, Apr 29, 2010 at 3:40 PM, johannes rara <johannesraja at gmail.com 
>> > wrote:
>>> I'm trying to learn data.table package but I get a following  
>>> annoying
>>> error message:
>>>
>>>> install.packages("data.table")
>>> trying URL 'http://www.freestatistics.org/cran/bin/macosx/universal/contrib/2.10/data.table_1.2.tgz'
>>> Content type 'application/x-gzip' length 66823 bytes (65 Kb)
>>> opened URL
>>> ==================================================
>>> downloaded 65 Kb
>>>
>>>
>>> The downloaded packages are in
>>>        /var/folders/n-/n-wPTanPGa4PpVd0bTgCOU+++TI/-Tmp-// 
>>> RtmppqPptG/downloaded_packages
>>>> library(data.table)
>>>> cr <- data.table(cars)
>>>> cr[speed == 20]
>>>     speed dist
>>> [1,]    20   32
>>> [2,]    20   48
>>> [3,]    20   52
>>> [4,]    20   56
>>> [5,]    20   64
>>> Warning messages:
>>> 1: In `[.data.table`(cr, speed == 20) :
>>>  This R session is < 2.4.0. Please upgrade to 2.4.0+.
>>> 2: In `[.data.table`(cr, speed == 20) :
>>>  This R session is < 2.4.0. Please upgrade to 2.4.0+.
>>>>
>>>
>>> I'm using R 2.10.1 (see sessioninfo below), so why this error  
>>> message
>>> keeps popping up?
>>>
>>>> sessionInfo()
>>> R version 2.10.1 (2009-12-14)
>>> i386-apple-darwin8.11.1
>>>
>>> locale:
>>> [1] fi_FI.UTF-8/fi_FI.UTF-8/C/C/fi_FI.UTF-8/fi_FI.UTF-8
>>>
>>> attached base packages:
>>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>>
>>> other attached packages:
>>> [1] data.table_1.2 ref_0.97
>>>
>>> loaded via a namespace (and not attached):
>>> [1] tools_2.10.1
>>>>
>>>
>>> -J
>>>
>>> ______________________________________________
>>> 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.
>>>
>>
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list