- using R Under development (unstable) (2025-02-19 r87749)
- 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 ... OK
See the install log 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 ... [8s/12s] 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 ... [8s/12s] 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)
+ })
Warning: ! `expr` evaluated fully before syrup could take a snapshot of memory usage.
• Results likely represent memory usage before `expr` was evaluated.
> res_syrup
# A tibble: 69 × 8
id time pid ppid name pct_cpu rss vms
<dbl> <dttm> <int> <int> <chr> <dbl> <bch:byt> <bch:byt>
1 1 2025-02-19 09:27:52 3228720 3228717 R NA 112.1MB 3.67GB
2 1 2025-02-19 09:27:52 3228715 3228714 R NA 76.5MB 354.86MB
3 1 2025-02-19 09:27:52 3228708 3228706 R NA 96.5MB 320.87MB
4 1 2025-02-19 09:27:52 3228660 3228659 R NA 136.3MB 295.37MB
5 1 2025-02-19 09:27:52 3228649 3228648 R NA 116.9MB 324.46MB
6 1 2025-02-19 09:27:52 3228647 3228646 R NA 137MB 295.91MB
7 1 2025-02-19 09:27:52 NA NA <NA> NA NA NA
8 1 2025-02-19 09:27:52 3228609 3228607 R NA 119.5MB 326.68MB
9 1 2025-02-19 09:27:52 3228595 3228592 R NA 76.7MB 347.27MB
10 1 2025-02-19 09:27:52 3228559 3228557 R NA 204.6MB 485.81MB
# ℹ 59 more rows
> syrup(Sys.sleep(1), interval = 0.01)
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 <https://github.com/simonpcouch/syrup/issues> with a reprex (<https://tidyverse.org/help/>) 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(Sys.sleep(1), interval = 0.01)
7. └─syrup:::retrieve_results(sesh)
8. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [13s/22s] ERROR
Running ‘testthat.R’ [12s/21s]
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 2 | WARN 2 | SKIP 2 | PASS 16 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• On CRAN (2): 'test-syrup.R:70:3', 'test-syrup.R:76:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── 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 <rlang_error> 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 <https://github.com/simonpcouch/syrup/issues> with a reprex (<https://tidyverse.org/help/>) 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 2 | WARN 2 | SKIP 2 | PASS 16 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... 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