简体   繁体   中英

R CMD Check fails

I am trying to build a package in R. I am documenting my functions (using R oxygen). As part of the documentation, I have added a few examples (using the tag @example). Now, one of my functions launches a Shiny App and I have provided an example on how to call this function in my documentation.

However, while performing a R CMD check, it reaches till this point:

checking for unstated dependencies in examples ... OK

And then does not proceed any further. I believe it has got to do with the shiny app being tested as part of R CMD checks (When I remove this particular example, it executes completely without any glitches)

What can I do to address this issue?

You can use \\donttest{ YOUREXAMPLE }

Looking around, I realize now there was a very complete synopsis of this here: What does "not run" mean in R help pages?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM