skip_if_no_mapping: Skip test if missing dependencies for mapping

View source: R/utils.R

skip_if_no_mappingR Documentation

Skip test if missing dependencies for mapping

Description

Function map depends on several spatial dependencies (ggspatial, prettymapr, rosm). This helper function allows to skip a test if these dependencies are not available Inspired by https://testthat.r-lib.org/articles/skipping.html#helpers.

Usage

skip_if_no_mapping()

Value

Invisibly returns TRUE if dependencies available, otherwise skips the test with a message "map() dependencies (ggspatial, prettymapr, rosm) not installed".


adokter/birdRad documentation built on Nov. 5, 2024, 10:27 p.m.