CRAN Package Check Results for Package emhawkes

Last updated on 2026-10-19 07:52:28 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.9.8 6.84 54.88 61.72 OK
r-devel-linux-x86_64-debian-gcc 1.0.0 45.84 187.22 233.06 OK
r-devel-linux-x86_64-fedora-clang 1.0.1 37.00 185.93 222.93 OK
r-devel-linux-x86_64-fedora-gcc 1.0.0 45.00 162.35 207.35 ERROR
r-devel-windows-x86_64 1.0.1 65.00 351.00 416.00 OK
r-patched-linux-x86_64 0.9.8 7.04 49.41 56.45 OK
r-release-linux-x86_64 0.9.8 6.99 48.73 55.72 OK
r-release-macos-arm64 1.0.1 13.00 69.00 82.00 OK
r-release-macos-x86_64 1.0.1 38.00 290.00 328.00 OK
r-release-windows-x86_64 0.9.8 65.00 254.00 319.00 OK
r-oldrel-macos-arm64 1.0.1 OK
r-oldrel-macos-x86_64 1.0.1 36.00 304.00 340.00 OK
r-oldrel-windows-x86_64 0.9.8 11.00 74.00 85.00 OK

Additional issues

noLD

Check Details

Version: 1.0.0
Check: tests
Result: ERROR Running ‘auto-function-engine.R’ Running ‘baseline-dispatch.R’ Running ‘baseline-projection.R’ Running ‘computation-regressions.R’ Running ‘constraint-alias.R’ Running ‘curvature-stress.R’ Running ‘expected-wait.R’ Running ‘fit-computation.R’ Running ‘fit-curvature.R’ Running ‘fit-messages.R’ Running ‘fit-rds-session.R’ Running ‘fit-reconstruction.R’ Running ‘function-gradient.R’ Running ‘function-numeric.R’ Running ‘function-replay.R’ Running ‘initialization.R’ Running ‘interfaces.R’ Running ‘loglik-inference.R’ Running ‘native-callback-simulation.R’ Running ‘native-engine.R’ Running ‘native-fit.R’ [23s/23s] Running ‘native-gradient.R’ Running ‘native-simulation.R’ Running ‘native-unequal-simulation.R’ Running ‘native-unwind.R’ Running ‘observed-impact-gradient.R’ Running ‘observed-impact-numeric.R’ Running ‘observed-impact-replay.R’ Running ‘r-callback-dispatch.R’ Running ‘realization-print.R’ Running ‘s4-minimal-session.R’ Running ‘signed-components.R’ Running ‘simulation-decay-reuse.R’ Running ‘simulation-dispatch.R’ Running ‘stable-final-hessian.R’ Running ‘state-gradient.R’ Running ‘state-impact-numeric.R’ Running ‘state-replay.R’ Running ‘stats-isolated-session.R’ Running ‘stats-optimizer.R’ Running ‘tzexp-distribution.R’ Running ‘user-diagnostics.R’ Running ‘volatility.R’ Running the tests in ‘tests/stats-isolated-session.R’ failed. Complete output: > library(emhawkes) > > # Copy only the package and its compiled dependency into an isolated library. > # The new R process must not find maxLik anywhere in its library search path. > isolated_stats_session <- function() { + root <- tempfile("stats-without-maxLik-") + dir.create(root) + isolated <- file.path(root, "library") + dir.create(isolated) + for (package in c("emhawkes", "Rcpp")) { + stopifnot(file.copy(find.package(package), isolated, recursive = TRUE)) + } + script <- file.path(root, "check.R") + writeLines(c( + "args <- commandArgs(TRUE)", + ".libPaths(c(args[1], .Library))", + "stopifnot(!('package:methods' %in% search()))", + "stopifnot(!requireNamespace('maxLik', quietly = TRUE))", + "library(emhawkes)", + "stopifnot(!('package:methods' %in% search()))", + "stopifnot(!'maxLik' %in% loadedNamespaces())", + "h <- methods::new('hspec', mu = .5, alpha = 0, beta = 1)", + "stopifnot(length(h@dimens) == 1L, h@dimens == 1, identical(dim(h@mu), c(1L, 1L)))", + "dt <- c(0,.2,.3,.5)", + "fit <- hfit(h, dt, optimizer = 'stats', lambda_component0 = 0,", + " fixed = c(FALSE,TRUE,TRUE), gradient = 'analytic',", + " control = list(reltol = 1e-12))", + "stopifnot(abs(coef(fit)[1]-3) < 1e-6, abs(vcov(fit)[1,1]-3) < 1e-6)", + "saveRDS(fit, args[2])", + "fit <- readRDS(args[2])", + "stopifnot(inherits(summary(fit), 'summary.emhawkes_stats_fit'))", + "invisible(capture.output(print(fit)))", + "stopifnot(fit_diagnostics(fit)$status == 'ok')", + "restored <- fitted_hspec(fit)", + "stopifnot(length(restored@dimens) == 1L, restored@dimens == 1, identical(dim(restored@mu), c(1L, 1L)))", + "replayed <- do.call(logLik, c(list(object = restored, inter_arrival = dt), fit_initial_state(fit)))", + "stopifnot(abs(as.numeric(replayed)-as.numeric(logLik(fit))) < 1e-12)", + "error <- tryCatch(hfit(h, dt), error = identity)", + "stopifnot(inherits(error,'error'), grepl(\"optimizer = 'stats'\", conditionMessage(error), fixed=TRUE))", + "stopifnot(!'maxLik' %in% loadedNamespaces())", + "cat('Isolated stats fit and saved-result round trip: OK\\n')" + ), script) + executable <- file.path(R.home("bin"), if (.Platform$OS.type == "windows") "Rscript.exe" else "Rscript") + output <- system2(executable, c("--vanilla", + "--default-packages=datasets,utils,grDevices,graphics,stats", + shQuote(script), shQuote(isolated), + shQuote(file.path(root, "fit.rds"))), stdout = TRUE, stderr = TRUE) + cat(output, sep = "\n") + stopifnot(is.null(attr(output, "status"))) + # Every removed file is contained in this test's own temporary directory. + stopifnot(startsWith(normalizePath(root, winslash = "/"), + paste0(normalizePath(tempdir(), winslash = "/"), "/"))) + unlink(root, recursive = TRUE) + } > isolated_stats_session() Error: !requireNamespace("maxLik", quietly = TRUE) is not TRUE Execution halted Error in isolated_stats_session() : is.null(attr(output, "status")) is not TRUE Calls: isolated_stats_session -> stopifnot In addition: Warning message: In system2(executable, c("--vanilla", "--default-packages=datasets,utils,grDevices,graphics,stats", : running command ''/data/localhost/ripley/R/R-devel/bin/Rscript' --vanilla --default-packages=datasets,utils,grDevices,graphics,stats '/tmp/RtmpwiZ523/working_dir/RtmpyueGHF/stats-without-maxLik-3baa16cc77776/check.R' '/tmp/RtmpwiZ523/working_dir/RtmpyueGHF/stats-without-maxLik-3baa16cc77776/library' '/tmp/RtmpwiZ523/working_dir/RtmpyueGHF/stats-without-maxLik-3baa16cc77776/fit.rds' 2>&1' had status 1 Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc