| bru_safe_sp | R Documentation | 
sp version compatibility issuesLoads the sp package with requireNamespace("sp", quietly = TRUE), and
checks and optionally sets the sp evolution status flag if rgdal is
unavailable.
bru_safe_sp(quietly = FALSE, force = FALSE, minimum_version = "1.4-5")
| quietly | logical; if  | 
| force | logical; If  | 
| minimum_version | character; the minimum required INLA version. Default 1.4-5 (should always match the requirement in the package DESCRIPTION) | 
Returns (invisibly) FALSE if a potential issue is detected, and
give a message if quietly is FALSE. Otherwise returns TRUE
## Not run: 
if (bru_safe_sp() &&
  require("sp")) {
  # Run sp dependent calculations
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.