[datatable-help] (Presumably) unintended issue with data.table1.6.3

Timothée Carayol timothee.carayol at gmail.com
Fri Aug 5 09:47:08 CEST 2011


test.data.table() runs successfully on my otherwise faulty version:
All 300 tests in test.data.table() completed ok in 2.420sec

I then proceeded to download the tar from CRAN and install it with R
CMD INSTALL, and my problems are fixed -- I think I had the same
issues as Chris Neff in another thread!

Thanks a lot
Timothee


On Thu, Aug 4, 2011 at 5:20 PM, Matthew Dowle <mdowle at mdowle.plus.com> wrote:
>
>> As a digression, is there a better way to drop a number of columns?
>
> Yes :
>
> A[,a:=NULL]
>
> but only one column at a time, currently.   That should be 0.000 time,
> regardless of the size of the table.
>
> On the errors, have you installed 1.6.3 from R-Forge before, by any chance?
> If so, I think you may be having 'update' issues, too.
> Does test.data.table() work and how many tests does it run?
>
>
> "Timothée Carayol" <timothee.carayol at gmail.com> wrote in message
> news:CAGam+C4Wed3C1mn2RXqxS8tmqL1r60wkM44U4rHUy6pi0Oqdxg at mail.gmail.com...
> Also,
>
> A$a <- NULL
> A
>
> at best shows an error:
>> A$a <- NULL
>> A
> Error in data.table(lapply(x, function(x) { :
>  'translateCharUTF8' must be called on a CHARSXP
>
> and at worst crashes my R process (segfault).
>
> I guess I'll just do "as.data.table(within(as.data.frame(A)" for now ;-)
>
> t
>
>
> 2011/8/4 Timothée Carayol <timothee.carayol at gmail.com>:
>> I am used to removing columns using
>> A <- within(A, rm(column))
>>
>> However this stopped working:
>>
>>> A <- data.table(a=1:10, b=11:20)
>>> within(A, rm(a))
>> Error in within.data.table(A, rm(a)) :
>> Can only assign one column at a time currently via within
>> In addition: Warning message:
>> In rm(a) : object 'a' not found
>>
>> transform(A, a=NULL) doesn't work either.
>>
>> As a digression, is there a better way to drop a number of columns?
>> A[, -col] doesn't work; A[, -"col", with=F] either.
>>
>> I have the latest version from CRAN I believe.
>>
>> Thanks
>> Timothee
>>
>
>
>
>
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>
>


More information about the datatable-help mailing list