[R-pkg-devel] Problems runing a example (shiny App) within a package
Duncan Murdoch
murdoch.duncan at gmail.com
Sat Jul 29 10:43:01 CEST 2017
On 28/07/2017 11:30 AM, Kévin A. S. R. wrote:
> Problems running a example (shiny App) within a package
>
>
> #main code
>
>
> runclt = function(){
> shiny::runApp(system.file("shinyCLT", package="CLT"))
> }
>
>
> #example
>
>
> \examples{
> runclt()
> }
>
>
>
> #Problem
>
>
> R CMD check breaks in "checking examples ..." and don't complete the tests.
>
> How to solve it
Shiny apps are interactive, and the tests are performed in a batch
session, so one simple approach is to change your example to
if (interactive())
runclt()
Duncan Murdoch
>
>
> Link to source code https://1drv.ms/u/s!AqhYme4BRWAog3VVjYb7oJ4jopDN
>
> [https://r1.res.office365.com/owa/prem/images/dc-generic_40.png]<https://1drv.ms/u/s!AqhYme4BRWAog3VVjYb7oJ4jopDN>
> CLT_2.1.1.tar.gz<https://1drv.ms/u/s!AqhYme4BRWAog3VVjYb7oJ4jopDN>
> Compartilhado via OneDrive
>
>
>
>
> thanks in advance,
>
> Kevin Allan S. R.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
More information about the R-package-devel
mailing list