[datatable-help] Using := in .onLoad
Juan Manuel Truppia
jmtruppia at gmail.com
Tue Jan 20 15:23:00 CET 2015
Yes, I have that option, but it is enough to just import := ? Per the FAQ
you mentioned, I should be importing the whole data.table package. Should I
also import [ ?
On Tue Jan 20 2015 at 11:13:16 AM Arunkumar Srinivasan <
aragorn168b at gmail.com> wrote:
> 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/ec2b6826/attachment.html>
More information about the datatable-help
mailing list