## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

## ----eval=FALSE---------------------------------------------------------------
# testthat::test_local()
# lintr::lint_package()
# 
# tmpdir <- tempfile("tutorizeR-source-")
# dir.create(tmpdir)
# system2("rsync", c(
#   "-a",
#   "--exclude=.git",
#   "--exclude=*.Rcheck",
#   "--exclude=*.tar.gz",
#   "./",
#   file.path(tmpdir, "tutorizeR/")
# ))
# old <- setwd(file.path(tmpdir, "tutorizeR"))
# on.exit(setwd(old), add = TRUE)
# system("R CMD build .")
# system("R CMD check --as-cran --no-manual tutorizeR_0.4.5.tar.gz")

