R Under development (unstable) (2025-05-08 r88190 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > if (file.exists("_options.R")) source("_options.R") > library(panelPomp,quietly=TRUE) > > TESTS_PASS <- NULL > test <- function(expr1,expr2,all="TESTS_PASS",env=parent.frame(),...) + panelPomp:::test(expr1,expr2,all=all,env=env,...) > > ep <- wQuotes("Error : (converted from warning) in ''plot'': ") > > old_o <- options(digits=3) > options(warn = 2) > png(file.path(tempdir(),"plot-%02d.png"),res=100) > ppo <- panelPomp:::panelRandomWalk(N=5,U=2) > plot(ppo) > dev.off() null device 1 > > options(old_o) > > test( + wQuotes(ep,"Requested units: c(foo) are not part of the object ''x''.\n"), + plot(ppo, units = c("rw1", "foo")) + ) [1] TRUE > > test( + wQuotes(ep, "Requested units are not part of the object ''x''. All units objects will be plotted.\n"), + plot(ppo, units = c("foo", "bar")) + ) [1] TRUE > > ## check whether all tests passed > all(get(eval(formals(test))$all)) [1] TRUE > if (!all(get(eval(formals(test))$all))) stop("Not all tests passed!") > > proc.time() user system elapsed 0.79 0.18 3.59