R Under development (unstable) (2023-10-03 r85259 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(WebAnalytics) Loading required package: ggplot2 Loading required package: xtable Loading required package: data.table Loading required package: scales > > test_that("populate works", { + local_edition(3) + skip_on_cran() + wkdir = paste0(tempdir(),"/testwkdir/") + workingDirectoryPopulate(wkdir) + # recursive=TRUE to suppress the txdata directory name being listed + expect_equal(list.files(wkdir,recursive=TRUE), list.files(system.file("templates", ".", package="WebAnalytics",mustWork=TRUE))) + workingDirectoryPopulate(wkdir) + expect_equal(list.files(wkdir,recursive=TRUE), list.files(system.file("templates", ".", package="WebAnalytics",mustWork=TRUE))) + unlink(wkdir,recursive=TRUE) + }) [1] "file to be copied makerpt.ps1" [1] "file to be copied makerpt.sh" [1] "file to be copied logo.eps" [1] "file to be copied webanalytics.cls" [1] "file to be copied sampleRfile.R" [1] "file to be copied sample.config" [1] "file to be copied makerpt.ps1" [1] "file to be copied makerpt.sh" [1] "file to be copied logo.eps" [1] "file to be copied webanalytics.cls" [1] "file to be copied sampleRfile.R" [1] "file to be copied sample.config" Test passed 😸 > > > proc.time() user system elapsed 2.20 0.39 2.57