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

Dean Attali daattali at gmail.com
Sat Aug 15 20:50:33 CEST 2015


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 <edd at 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
> | "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 this is what you want, why not make it so -- maybe by adding an 'empty'
> call into a DT function not used.  Eg
>
>      R/ignoreme.R
>
> containing
>
>      nevercalled <- function(filename) {
>           ignored <- data.table::fread(filename)
>      }
>
> should do.
>
> | I know I can get rid of the problem by placing the entire shiny app in
> the R
> | folder, but it's a large app and it seems like separating it and having
> it
> | under inst/shiny makes more sense.
>
> Why?  It is still in the package.  Maybe make the shiny app a package
> itself
> and add Suggests: on it?
>
> Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list