Return roxygen2 parameter calls from the intersection of the parameters listed in the package dictionary and the formals of a function
ls_param(obj, dictionary = "man-roxygen/Dictionary-1.R", print = TRUE)
function or name of function
character, path_to_dictionary, Default: 'roxygen-man/Dictionary-1.R'
boolean print output to console, Default: TRUE
character vector
repo='https://raw.githubusercontent.com/yonicd/sinew/master/'
dict_loc=file.path(repo,'man-roxygen/Dictionary-1.R')
ls_param(sinew::makeOxygen,dictionary=dict_loc)
#> #' @param obj function or name of function
#> #' @param add_default boolean to add defaults values to the end of the PARAM
#> #' @param add_fields character vector to add additional roxygen2 fields,
#> #' @param use_dictionary character, path_to_dictionary, Default: NULL
#> #' @param print boolean print output to console, Default: TRUE