tests/testthat/_snaps/shim.md

shimmed system.file respects mustWork

Code
  (expect_error(find_missing(TRUE), "Can't find package file."))
Output
  <error/rlang_error>
  Error:
  ! Can't find package file.

system.file() fails if path starts with inst (#104)

Code
  (expect_error(shim_system.file("inst/WORDLIST", package = "pkgload", mustWork = TRUE))
  )
Output
  <error/rlang_error>
  Error in `shim_system.file()`:
  ! Paths can't start with `inst`
  i Files in `inst` are installed at top-level.
Code
  (expect_error(shim_system.file("inst", "WORDLIST", package = "pkgload",
    mustWork = TRUE)))
Output
  <error/rlang_error>
  Error in `shim_system.file()`:
  ! Paths can't start with `inst`
  i Files in `inst` are installed at top-level.


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.