[datatable-help] Using := in .onLoad

Arunkumar Srinivasan aragorn168b at gmail.com
Tue Jan 20 15:13:16 CET 2015


In that case, you can use `importFrom()` as mentioned here:
http://cran.r-project.org/doc/manuals/R-exts.html#Specifying-imports-and-exports

On Tue, Jan 20, 2015 at 3:01 PM, Juan Manuel Truppia <jmtruppia at gmail.com>
wrote:

> Yes, I use hadley tools regularly, and it's hadley himself who recommends
> not to import the whole namespace to avoid polluting (check his R packages
> book).
>
> On Tue, Jan 20, 2015, 10:53 Mick Cooney <mickcooney at gmail.com> wrote:
>
>> Hi Juan,
>>
>> That isn't really a workaround, it is the way you are supposed to
>> import things these days. The functionality for NAMESPACE files etc
>> changed a while ago with one of the version releases of R (I think it
>> was something like 2.13, but don't quote me). If you import it via a
>> namespace it should work fine.
>>
>> BTW, if you are developing a package, I highly recommend using Hadley
>> Wickham's devtools package. Combine that with roxygen2 for
>> documentation, and a huge amount of the bookkeeping and maintenance of
>> packages is taken care of for you.
>>
>>
>> --
>> Mick Cooney
>> mickcooney at gmail.com
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20150120/126dc70f/attachment.html>


More information about the datatable-help mailing list