tests/testthat/_snaps/load-hooks.md

user onLoad hooks are properly run

Code
  (expect_warning(expect_condition(load_all("testUserLoadHookUpstream"), class = "hook_was_run_error"))
  )
Output
  <warning/rlang_warning>
  Warning:
  Problem while running user `onLoad` hook for package testUserLoadHookUpstream.
  i The hook inherits from `namespace:testUserLoadHookError`.
  Caused by error in `fun()`:
  ! The message.


Try the pkgload package in your browser

Any scripts or data that you put into this service are public.

pkgload documentation built on June 28, 2024, 5:07 p.m.