[R-pkg-devel] Having shiny as an optional dependency

Gábor Csárdi c@@rd|@g@bor @end|ng |rom gm@||@com
Sat Nov 14 19:38:57 CET 2020


You probably import functions from shiny. Don't do that, refer to them
with the `::` operator instead.

Gabor

On Sat, Nov 14, 2020 at 6:12 PM Kamil Stachowski
<kamil.stachowski using gmail.com> wrote:
>
> I wrote a package that contains a graphical interface written with packages
> "shiny" and "shinyjqui". My package can also be used from the CLI, so I
> listed both "shiny" and "shinyjqui" as optional dependencies. I ran R CMD
> check --as-cran on my computer in R 3.6.3 and devel, and both passed
> without any errors or warnings. However, when I tried uploading the package
> to CRAN, I got this error:
>
> Error in loadNamespace(x) : there is no package called ‘shiny’
> Error: unable to load R code in package ‘soundcorrs’
> Execution halted
> ERROR: lazy loading failed for package ‘soundcorrs’
>
> How can I fix this?
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list