library(testthat)
library(knitroR)
# Turning off testing when the mock library is being used (e.g. on travis)
# as indicated by the environmental variable KNITRO_MOCK.
#
# This is of course a bad idea: It would be better to have the mock library
# return real (fake) results instead of garbage so that I can actually
# use it for testing the package. The sole benefit of turning the tests off
# is to get the "build passing" button from travis.
if (Sys.getenv("KNITRO_MOCK") != 1) {
test_check("knitroR")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.