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("saveGraph saves the right file names", { + # commented out to addresss cran limitations + # skip_on_cran() + # filesDir = paste0(tempdir(), "/", "testplotfunctions/") + # dir.create(filesDir) + # configVariableSet("config.workdir", filesDir) + # fileName = "u_getIISFields5.log" + # logFields = logFileFieldsGetIIS(fileName) + # logrecs = logFileRead(fileName, columnList=logFields) + # + # #dir.create(configFilesDirectoryNameGet(),recursive=TRUE) + # + # filename = plotSave(plot(logrecs$elapsed, logrecs$ts), fileID = "x", fileType="jpg") + # + # expect_true(file.exists(filename)) + # + # unlink(filename) + # + # filename = plotSave(plot(logrecs$elapsed, logrecs$ts), "y", "eps") + # expect_true(file.exists(filename)) + # + # unlink(filename) + # #expect_error(plotSave(ggplot(data=logrecs)+aes(y=elapsed, x=posixtimes)+geom_point(), "z.eps"), "ggplot object passed to plotSave") + # + # qqqq = ggplot(data=logrecs)+aes(y=elapsed, x=ts)+geom_point() + # expect_equal(length(logrecs$ts),59414) + # + # filename = plotSaveGG(qqqq, "z2","eps") + # expect_true(file.exists(filename)) + # + # unlink(filename) + }) ── Skip: saveGraph saves the right file names ────────────────────────────────── Reason: empty test > > > proc.time() user system elapsed 1.71 0.37 2.07