mirror of https://git.sr.ht/~hrbrmstr/freebase
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
493 B
15 lines
493 B
#' Use base-ified equivalents of "safely"-ifiers
|
|
#'
|
|
#' * Creates `R/utils-safely.R` with base R pseudo-equivalents for `purrr` `safely` (et al).
|
|
#'
|
|
#' @md
|
|
#' @param save_as Where to save/what to name the file. Defaults to "`R/utils-safely.R`"
|
|
#' @param open if `TRUE`, open the resultant file
|
|
#' @export
|
|
use_safely <- function(save_as = "R/utils-safely.R", open = TRUE) {
|
|
|
|
check_is_package("use_safely()")
|
|
|
|
use_template("safely.R", save_as = save_as , open = open, package = "freebase")
|
|
|
|
}
|