powered by
lifecycle::badge("experimental")
Extracts formals and formats them as an easily testable character vector.
formals
character vector
simplified_formals(fn)
A character vector with the simplified formals.
Function.
Function
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
# Attach packages library(xpectr) fn1 <- function(a = "x", b = NULL, c = NA, d){ paste0(a, b, c, d) } simplified_formals(fn1)
Run the code above in your browser using DataLab