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 [ ?<br><br><div class="gmail_quote">On Tue Jan 20 2015 at 11:13:16 AM Arunkumar Srinivasan <<a href="mailto:aragorn168b@gmail.com">aragorn168b@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In that case, you can use `importFrom()` as mentioned here: <a href="http://cran.r-project.org/doc/manuals/R-exts.html#Specifying-imports-and-exports" target="_blank">http://cran.r-project.org/doc/manuals/R-exts.html#Specifying-imports-and-exports</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 3:01 PM, Juan Manuel Truppia <span dir="ltr"><<a href="mailto:jmtruppia@gmail.com" target="_blank">jmtruppia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">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).</p><div><div>
<br><div class="gmail_quote">On Tue, Jan 20, 2015, 10:53 Mick Cooney <<a href="mailto:mickcooney@gmail.com" target="_blank">mickcooney@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Juan,<br>
<br>
That isn't really a workaround, it is the way you are supposed to<br>
import things these days. The functionality for NAMESPACE files etc<br>
changed a while ago with one of the version releases of R (I think it<br>
was something like 2.13, but don't quote me). If you import it via a<br>
namespace it should work fine.<br>
<br>
BTW, if you are developing a package, I highly recommend using Hadley<br>
Wickham's devtools package. Combine that with roxygen2 for<br>
documentation, and a huge amount of the bookkeeping and maintenance of<br>
packages is taken care of for you.<br>
<br>
<br>
--<br>
Mick Cooney<br>
<a href="mailto:mickcooney@gmail.com" target="_blank">mickcooney@gmail.com</a><br>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>