Configure how MAIDR handles unsupported plot types or layers. When fallback is enabled, unsupported plots are rendered as static images instead of failing or returning empty data.
Arguments
- enabled
Logical. If TRUE (default), unsupported plots fall back to image rendering. If FALSE, unsupported layers return empty data.
- format
Character. Image format for fallback: "png" (default), "svg", or "jpeg".
- warning
Logical. If TRUE (default), shows a warning message when falling back to image rendering.
Examples
if (FALSE) { # \dontrun{
# Disable fallback (unsupported plots will have empty data)
maidr_set_fallback(enabled = FALSE)
# Use SVG format for fallback images
maidr_set_fallback(format = "svg")
# Disable warning messages
maidr_set_fallback(warning = FALSE)
# Configure multiple options
maidr_set_fallback(enabled = TRUE, format = "png", warning = TRUE)
} # }