context("Test timeSequenceEncored")
testEnvFileName <- "testEnv_timeSequenceEncored.RData"
pkgName <- getPackageName()
testEnvFilePath <- getExtDataFilePathOfInstalledPkg(testEnvFileName, pkgName)
load(testEnvFilePath)
test_that(desc = "Test timeSequenceEncored",
code = {
testResult <-
timeSequenceEncored(start_date, end_date, time_unit, num_seq)
if (getStatusOfProducingTestAnswer(returnStatus = TRUE)) {
answer <- testResult
save(list = ls(),
file = getExtDataFilePathOfDevelopingPkg(testEnvFileName, pkgName))
}
expect_equal(testResult, answer)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.