trevorld / ggpattern

ggplot geoms with pattern fills
https://trevorldavis.com/R/ggpattern/dev/
Other
361 stars 18 forks source link

Don't throw error in tests/vignettes if a suggested packages not available #65

Closed trevorld closed 2 years ago

trevorld commented 2 years ago

Can test by setting _R_CHECK_DEPENDS_ONLY_ environmental variable to "true" before R CMD check. NB. CRAN allows assumption that {testthat} is present even if in Suggests...

Sys.setenv("_R_CHECK_DEPENDS_ONLY_"="true")
check()