creates an optparse template from a function and its arguments
initialize_optparse(func_name, func_path = NULL, out_path = NULL)
name of function [type: string]
path to function (optional)
path to write optparsed file (optional)
initialize_optparse("pmid2doi")
#> #!/usr/local/bin/Rscript --vanilla
#>
#> suppressMessages(require(optparse))
#> option_list <- list(
#> make_option(opt_str = c('--pmid'))
#> )
#> opts <- parse_args(OptionParser(option_list = option_list))
#> pmid2doi(opts$pmid)