knitr::opts_chunk$set( error = TRUE, collapse = TRUE, comment = "#>", out.width = "100%" )
library(testthat) library(jeksterslabRutils) context("Test util_clean_dir.")
tmp_01 <- util_make_subdir() tmp_02 <- util_make_subdir()
test_that("error", { expect_error( util_clean_dir( dir = "NONEXISTENT", create_dir = FALSE ) ) })
util_clean_dir( dir = tmp_01, create_dir = FALSE ) util_clean_dir( dir = tmp_02, create_dir = FALSE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.