# Thest the get_dirs
# 20190911 by JJAV
# # # # # # # # # # # #
context("Test get_dirs")
test_that("get_dirs works fine" , {
curdir = getwd()
#cat("\nCurrent directory: ", curdir,"\n")
tmpfile <- tempfile()
dir.create(tmpfile)
setwd(tmpfile)
make_structure()
dirs <- get_dirs()
expect_type(dirs,"list")
# clean the messs
setwd(curdir)
unlink(tmpfile, recursive = T, force = T)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.