tests/testthat/_snaps/r-session.md

run throws

Code
  rs$run(function() stop("foobar"))
Condition
  Error:
  ! in callr subprocess.
  Caused by error:
  ! foobar

traceback

Code
  rs$run(do)
Condition
  Error:
  ! in callr subprocess.
  Caused by error:
  ! oops

error in the load hook

Code
  local({
    rs <- r_session$new(opts)
    on.exit(rs$kill(), add = TRUE)
  })
Condition
  Error:
  ! callr subprocess failed: Failed to start R session


r-lib/callr documentation built on June 11, 2025, 2:48 p.m.