if (!requireNamespace("pkgload", quietly = TRUE)) { stop("The `pkgload` package is required to run the app from source.", call. = FALSE) } pkgload::load_all(".") spatialtoolkit::run_app()