Thanks, it worked, and the error message disappeared...

* installing *source* package ‘data.table’ ...
** libs
** arch - i386
gcc -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386
-I/usr/local/include    -fPIC  -g -O2 -c dogroups.c -o dogroups.o
gcc -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386
-I/usr/local/include    -fPIC  -g -O2 -c duplist.c -o duplist.o
gcc -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386
-I/usr/local/include    -fPIC  -g -O2 -c sortedmatch.c -o
sortedmatch.o
gcc -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
-mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module
-multiply_defined suppress -L/usr/local/lib -o data.table.so
dogroups.o duplist.o sortedmatch.o
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
ld: warning: duplicate dylib /usr/local/lib/libgcc_s.1.dylib
** arch - ppc
gcc -arch ppc -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/ppc
-I/usr/local/include    -fPIC  -g -O2 -c dogroups.c -o dogroups.o
gcc -arch ppc -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/ppc
-I/usr/local/include    -fPIC  -g -O2 -c duplist.c -o duplist.o
gcc -arch ppc -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/ppc
-I/usr/local/include    -fPIC  -g -O2 -c sortedmatch.c -o
sortedmatch.o
gcc -arch ppc -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
-mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module
-multiply_defined suppress -L/usr/local/lib -o data.table.so
dogroups.o duplist.o sortedmatch.o
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
ld: warning: duplicate dylib /usr/local/lib/libgcc_s.1.dylib
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
* DONE (data.table)

The downloaded packages are in
        
‘/private/var/folders/n-/n-wPTanPGa4PpVd0bTgCOU+++TI/-Tmp-/RtmpuxfQKZ/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
>

-J

2010/4/29 David Winsemius <dwinsem...@comcast.net>:
>
> 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.rli...@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 <johannesr...@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@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@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
>
>

______________________________________________
R-help@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.

Reply via email to