Standalone Scripts

The package utilizes a few standalone scripts that are used across a few projects, including {cards}, {cardx}, and {gtsummary}. Some of these scripts make available shims for common tidyverse functions, so you can use the function without depending on the package. The standalone-checks.R script is a series of functions to check the argument values supplied by users, and provides informative error messages when the values are not valid.

You may find that you need, for example, an additional general checking function. If that is the case, you’d update the script in its source location, then run one of the lines below to update the script in the package you’re working on.

usethis::use_standalone("r-lib/rlang", file = "purrr")
usethis::use_standalone("ddsjoberg/standalone", file = "tibble")
usethis::use_standalone("ddsjoberg/standalone", file = "forcats")
usethis::use_standalone("ddsjoberg/standalone", file = "stringr")
usethis::use_standalone("ddsjoberg/standalone", file = "checks")
usethis::use_standalone("ddsjoberg/standalone", file = "check_pkg_installed")
usethis::use_standalone("ddsjoberg/standalone", file = "cli_call_env")