R Under development (unstable) (2023-11-26 r85638 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(grDevices, pos = "package:base", verbose = FALSE) > library( stats, pos = "package:base", verbose = FALSE) > library( utils, pos = "package:base", verbose = FALSE) > > library(fastbeta) > options(warn = 2L, error = recover) > > data(sir.e01, package = "fastbeta") > a <- attributes(sir.e01) > > series <- cbind(sir.e01[, c("Z", "B")], mu = a[["mu"]](0)) > > a <- 2296; b <- 2452 > str(L0 <- ptpi(series, a = a, b = b, start = 4e+04, complete = FALSE)) Error in ptpi(series, a = a, b = b, start = 40000, complete = FALSE) : b <= tsp(series)[2L] is not TRUE Calls: str -> ptpi -> stopifnot -> eval -> eval -> stopifnot recover called non-interactively; frames dumped, use debugger() to view > str(L1 <- ptpi(series, a = a, b = b, start = 4e+04, complete = TRUE)) Error in ptpi(series, a = a, b = b, start = 40000, complete = TRUE) : b <= tsp(series)[2L] is not TRUE Calls: str -> ptpi -> stopifnot -> eval -> eval -> stopifnot recover called non-interactively; frames dumped, use debugger() to view > > stopifnot(exprs = { + is.list(L0) + length(L0) == 4L + identical(names(L0), c("value", "delta", "iter", "X")) + is.list(L1) + length(L1) == length(L0) + identical(names(L1), names(L0)) + identical(L0[-4L], L1[-4L]) + is.null(L0[[4L]]) + }) Error in eval(cl, envir = envir) : object 'L0' not found Calls: stopifnot -> eval -> eval -> stopifnot recover called non-interactively; frames dumped, use debugger() to view > > value <- L1[["value"]] Error: object 'L1' not found No suitable frames for recover() > stopifnot(exprs = { + is.double(value) + length(value) == 1L + is.finite(value) + value >= 0 + }) Error in eval(cl, envir = envir) : object 'value' not found Calls: stopifnot -> eval -> eval -> stopifnot recover called non-interactively; frames dumped, use debugger() to view > > delta <- L1[["delta"]] Error: object 'L1' not found No suitable frames for recover() > stopifnot(exprs = { + is.double(delta) + length(delta) == 1L + is.finite(delta) + }) Error in eval(cl, envir = envir) : object 'delta' not found Calls: stopifnot -> eval -> eval -> stopifnot recover called non-interactively; frames dumped, use debugger() to view > > iter <- L1[["iter"]] Error: object 'L1' not found No suitable frames for recover() > stopifnot(exprs = { + is.integer(iter) + length(iter) == 1L + !is.na(iter) + iter >= 1L + }) Error in eval(cl, envir = envir) : object 'iter' not found Calls: stopifnot -> eval -> eval -> stopifnot recover called non-interactively; frames dumped, use debugger() to view > > X <- L1[["X"]] Error: object 'L1' not found No suitable frames for recover() > stopifnot(exprs = { + is.double(X) + is.mts(X) + dim(X)[2L] == iter + is.null(dimnames(X)) + is.finite(X) + X >= 0 + }) Error in eval(cl, envir = envir) : object 'X' not found Calls: stopifnot -> eval -> eval -> stopifnot recover called non-interactively; frames dumped, use debugger() to view > > if (dev.interactive(TRUE)) + plot(X) > > unclass(proc.time()) user.self sys.self elapsed user.child sys.child 3.56 0.15 3.71 NA NA > > proc.time() user system elapsed 3.56 0.15 3.71