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 Sept. 22, 2023, 9:06 a.m.