Skip to content

bayesplot development notes

TJ Mahr edited this page Sep 18, 2018 · 4 revisions

The purpose of this page is to collect notes and code snippets that are useful for the development of bayesplot.

How to test a package as CRAN

The function skip_on_cran() will skip a time-consuming and dependency-heavy test from running on CRAN. To run the suite of tests as though you were on CRAN, use:

Sys.setenv(NOT_CRAN = "false")
devtools::test()

Currently, all of the visual unit tests are set to skip on CRAN because spurious false positives can be raised due to which fonts or other software are installed on the testing machine.

Clone this wiki locally