Skip to content

[R-pkg-devel] Problems runing a example (shiny App) within a package

2 messages · Kévin A. S. R., Duncan Murdoch

#
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


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.
#
On 28/07/2017 11:30 AM, K?vin A. S. R. wrote:
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