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: 89 × 8
      id time                    pid    ppid name  pct_cpu       rss       vms
   <dbl> <dttm>                <int>   <int> <chr>   <dbl> <bch:byt> <bch:byt>
 1     1 2025-02-23 17:58:35 2388125 2388124 R          NA    90.5MB     298MB
 2     1 2025-02-23 17:58:35 2388123 2388120 R          NA    32.4MB     186MB
 3     1 2025-02-23 17:58:35 2388081       1 R          NA    83.1MB     247MB
 4     1 2025-02-23 17:58:35 2388082       1 R          NA    75.7MB     239MB
 5     1 2025-02-23 17:58:35 2388079 2388074 R          NA    67.5MB     275MB
 6     1 2025-02-23 17:58:35 2388063 2388062 R          NA    74.9MB     283MB
 7     1 2025-02-23 17:58:35 2388050 2388049 R          NA        NA        NA
 8     1 2025-02-23 17:58:35 2387967 2387966 R          NA        NA        NA
 9     1 2025-02-23 17:58:35 2387900 2387896 R          NA     131MB      20TB
10     1 2025-02-23 17:58:35 2387849 2387848 R          NA    77.2MB     347MB
# ℹ 79 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