knitr::opts_chunk$set( error = TRUE, collapse = TRUE, comment = "#>", out.width = "100%" )
library(testthat) library(jeksterslabRplots)
.hist.plot( x = rnorm(n = 100, mean = 100, sd = 15) )
expect_error( object = .hist.plot( x = rnorm(n = 100, mean = 100, sd = 15) ), regexp = NA ) expect_error( object = .hist.plot( x = rexp(n = 100) ), regexp = NA )
expect_error( object = .hist.plot( x = rnorm(n = 100, mean = 100, sd = 15), legend = FALSE ), regexp = NA ) expect_error( object = .hist.plot( x = rexp(n = 100), legend = FALSE ), regexp = NA )
expect_error( object = .hist.plot( x = rnorm(n = 100, mean = 100, sd = 15), kernel = FALSE ), regexp = NA ) expect_error( object = .hist.plot( x = rexp(n = 100), kernel = FALSE ), regexp = NA )
expect_error( object = .hist.plot( x = rnorm(n = 100, mean = 100, sd = 15), normalcurve = FALSE ), regexp = NA ) expect_error( object = .hist.plot( x = rexp(n = 100), normalcurve = FALSE ), regexp = NA )
expect_error( object = .hist.plot( x = rexp(n = 100), plot = FALSE ), regexp = NA )
expect_error( object = .hist.plot( x = rexp(n = 100), freq = TRUE ), regexp = NA )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.