[datatable-help] Using data.table within another package/scoping

Damian Betebenner dbetebenner at nciea.org
Wed Dec 15 10:33:23 CET 2010


Steve,

That appears to work!!! Thank you for your help.

Best regards,

Damian


-----Original Message-----
From: Steve Lianoglou [mailto:mailinglist.honeypot at gmail.com] 
Sent: Tuesday, December 14, 2010 8:07 PM
To: Damian Betebenner
Cc: datatable-help at lists.r-forge.r-project.org
Subject: Re: [datatable-help] Using data.table within another package/scoping

Hi Damian,


On Tue, Dec 14, 2010 at 7:58 PM, Damian Betebenner
<dbetebenner at nciea.org> wrote:
[snip]
> I have been trying to integrate data.table into a package I produce and keep
> having problems with an "object not found" issue.
>
> When I source the function, it works, but when it is put into a package it
> doesn't work.
[snip]

Two things:

(1) Install version 1.5.1 from R-forge:

R> install.packages('data.table', repos="http://r-forge.r-project.org")

(2a) List "data.table" in your DESCRIPTION::Imports filed
(2b) add "imports(data.table)" in your NAMESPACE file

Does that work?
-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact


More information about the datatable-help mailing list