* using log directory ‘/data/gannet/ripley/R/packages/tests-clang/syrup.Rcheck’ * using R Under development (unstable) (2025-02-22 r87795) * using platform: x86_64-pc-linux-gnu * R was compiled by clang version 20.1.0-rc2 flang version 20.1.0-rc2 * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘syrup/DESCRIPTION’ ... OK * this is package ‘syrup’ version ‘0.1.1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘syrup’ can be installed ... [7s/25s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/syrup-00install.html' for details. * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [9s/34s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [4s/17s] ERROR Running examples in ‘syrup-Ex.R’ failed The error most likely occurred in: > ### Name: syrup > ### Title: Memory and CPU Usage Information for Parallel R Code > ### Aliases: syrup > > ### ** Examples > > ## Don't show: > if (ps::ps_os_type()[["POSIX"]]) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + # pass any expression to syrup. first, sequentially: + res_syrup <- syrup({res_output <- Sys.sleep(1)}) + + res_syrup + + # to snapshot memory and CPU information more (or less) often, set `interval` + syrup(Sys.sleep(1), interval = .01) + + # use `peak = TRUE` to return only the snapshot with + # the highest memory usage (as `sum(rss)`) + syrup(Sys.sleep(1), interval = .01, peak = TRUE) + + # results from syrup are more---or maybe only---useful when + # computations are evaluated in parallel. see package README + # for an example. + ## Don't show: + }) # examplesIf > res_syrup <- syrup({ + res_output <- Sys.sleep(1) + }) Error in `syrup()`: ! Unable to retrieve resource usage results from the temporary session. ℹ This is an internal error that was detected in the syrup package. Please report it at with a reprex () and the full backtrace. Backtrace: ▆ 1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...) 2. │ └─base::source(...) 3. │ ├─base::withVisible(eval(ei, envir)) 4. │ └─base::eval(ei, envir) 5. │ └─base::eval(ei, envir) 6. └─syrup::syrup(...) 7. └─syrup:::retrieve_results(sesh) 8. └─rlang::abort(...) Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [12s/40s] ERROR Running ‘testthat.R’ [11s/39s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(syrup) Loading required package: bench > > test_check("syrup") [ FAIL 7 | WARN 0 | SKIP 2 | PASS 1 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-syrup.R:70:3', 'test-syrup.R:76:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-syrup.R:5:3'): syrup works ─────────────────────────────────── Expected `res <- syrup(res_with_syrup <- Sys.sleep(1))` to run without any errors. i Actually got a with text: Unable to retrieve resource usage results from the temporary session. i This is an internal error that was detected in the syrup package. Please report it at with a reprex () and the full backtrace. ── Error ('test-syrup.R:16:3'): syrup works ──────────────────────────────────── Error in `eval(code, test_env)`: object 'res' not found Backtrace: ▆ 1. └─testthat::expect_s3_class(res, "tbl_df") at test-syrup.R:16:3 2. └─testthat::quasi_label(enquo(object), arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-syrup.R:30:3'): syrup(peak = TRUE) works ───────────────────── Expected `res <- syrup(Sys.sleep(1), peak = TRUE)` to run without any errors. i Actually got a with text: Unable to retrieve resource usage results from the temporary session. i This is an internal error that was detected in the syrup package. Please report it at with a reprex () and the full backtrace. ── Error ('test-syrup.R:37:3'): syrup(peak = TRUE) works ─────────────────────── Error in `eval(code, test_env)`: object 'res' not found Backtrace: ▆ 1. └─testthat::expect_s3_class(res, "tbl_df") at test-syrup.R:37:3 2. └─testthat::quasi_label(enquo(object), arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-syrup.R:45:3'): syrup(interval) works ──────────────────────── Expected `res_01 <- syrup(Sys.sleep(1), interval = 0.01)` to run without any errors. i Actually got a with text: Unable to retrieve resource usage results from the temporary session. i This is an internal error that was detected in the syrup package. Please report it at with a reprex () and the full backtrace. ── Failure ('test-syrup.R:52:3'): syrup(interval) works ──────────────────────── Expected `res_1 <- syrup(Sys.sleep(1), interval = 0.1)` to run without any errors. i Actually got a with text: Unable to retrieve resource usage results from the temporary session. i This is an internal error that was detected in the syrup package. Please report it at with a reprex () and the full backtrace. ── Error ('test-syrup.R:59:3'): syrup(interval) works ────────────────────────── Error in `eval(code, test_env)`: object 'res_01' not found Backtrace: ▆ 1. └─testthat::expect_s3_class(res_01, "tbl_df") at test-syrup.R:59:3 2. └─testthat::quasi_label(enquo(object), arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) [ FAIL 7 | WARN 0 | SKIP 2 | PASS 1 ] Error: Test failures Execution halted * checking PDF version of manual ... [7s/26s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs