tests/testthat/test_pccc_load_unload.R

# This script just does basic loading and unloading of the pccc library
#
###############################################################################
#
# run tests with Ctrl/Cmd + Shift + T or devtools::test()
# for manually running, execute
#   library(testthat)
context("PCCC - Loading and unloading Package")

expect_silent(library(pccc))

# Unloading shouldn't result in any errors or warnings
expect_silent(detach("package:pccc", unload=TRUE))

Try the pccc package in your browser

Any scripts or data that you put into this service are public.

pccc documentation built on July 5, 2018, 1:04 a.m.