-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post about different types of examples #33
Comments
Tip https://twitter.com/WeAreRLadies/status/1064734591641104384?s=19 by Mine CR Rundontrun in pkgdown |
dontshow use cases
|
What's run with example() https://github.com/wch/r-source/blob/861905f8c701de8dc673e7c218f808f35d82190a/src/library/utils/R/example.R#L20
|
In https://github.com/wch/r-source/blob/06185bd431beb9b6e0883193273d1779ef2c6a2c/src/library/tools/R/testing.R testInstalledPackage calls |
where to store examples (with roxygen2, not necessarily in the R file, probably more natural not to write them with "##" in front) |
https://github.com/search?utf8=%E2%9C%93&q=%22%5Cdontrun%7B%22+user%3Acran+extension%3ARd&type=Code&ref=advsearch&l=&l= 19,247 dontrun in CRAN Rd files https://github.com/search?q=%22%5Cdonttest%7B%22+user%3Acran+extension%3ARd&type=Code 2,024 donttest in CRAN Rd files https://github.com/search?q=%22%5Cdontshow%7B%22+user%3Acran+extension%3ARd&type=Code 1,228 dontshow |
no mention of dontrun/donttest in https://cran.r-project.org/web/packages/policies.html |
https://stat.ethz.ch/pipermail/r-package-devel/2018q2/002811.html and its answer "Sure, \dontrun{} markup is intended for cases where neither automated |
works out of the box but long or interactive -> donttest doesn't work out of the box or doesn't work at all -> dontrun e.g. to get a subset of the example data -> dontshow |
dontrun, donttest, dontshow, etc.
examples package coverage
https://testthat.r-lib.org/reference/test_examples.html
have a look over the CRAN mirror repos.
maybe a few R-pkg-devel links.
The text was updated successfully, but these errors were encountered: