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

Steve Lianoglou mailinglist.honeypot at gmail.com
Wed Dec 15 02:06:54 CET 2010


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