tests/testthat/_snaps/package.md

is_pkgdown checks its inputs

Code
  as_pkgdown(1)
Condition
  Error in `as_pkgdown()`:
  ! `pkg` must be a single string, not the number 1.
Code
  as_pkgdown(override = 1)
Condition
  Error in `as_pkgdown()`:
  ! `override` must be a list, not the number 1.

check_bootstrap_version() gives informative error otherwise

Code
  check_bootstrap_version(1, pkg)
Condition
  Error:
  ! Boostrap version must be 3 or 5.
  x You set a value of 1 to template.bootstrap in _pkgdown.yml.


r-lib/pkgdown documentation built on May 1, 2024, 9:15 a.m.