Re: [R-pkg-devel] Listing a package in Imports: when it's used outside of R directory

2015-08-15 Thread Duncan Murdoch
On 15/08/2015 2:36 AM, Dean Attali wrote: It seems like if a package is declared under the Imports: field in the DESCRIPTION file, and that package is not used in any code in the R directory, then I get an error when doing a R CMD CHECK Namespace in Imports field not imported from: 'DT'

Re: [R-pkg-devel] Listing a package in Imports: when it's used outside of R directory

2015-08-15 Thread Dean Attali
I'll go with your suggestion to make a dummy function, thanks Dirk --- http://deanattali.com On 15 August 2015 at 05:35, Dirk Eddelbuettel e...@debian.org wrote: On 14 August 2015 at 23:36, Dean Attali wrote: | Since the Shiny app is an integral part of the package, and the app uses the |

[R-pkg-devel] Listing a package in Imports: when it's used outside of R directory

2015-08-15 Thread Dean Attali
It seems like if a package is declared under the Imports: field in the DESCRIPTION file, and that package is not used in any code in the R directory, then I get an error when doing a R CMD CHECK Namespace in Imports field not imported from: 'DT' All declared Imports should be used. It

Re: [R-pkg-devel] Listing a package in Imports: when it's used outside of R directory

2015-08-15 Thread Dirk Eddelbuettel
On 14 August 2015 at 23:36, Dean Attali wrote: | Since the Shiny app is an integral part of the package, and the app uses the | DT package, I want to place DT under the Imports: field. But then I ran | into the above error. The code checkers are heuristics. They cannot get everything right. If