shortenPkg {r2shortcode} | R Documentation |
This will create shorthand functions for functions in a package. This function brings together most functions in this package.
shortenPkg(pkg, addPrefix = TRUE, silent = FALSE, num.prefix = 3)
pkg |
package name |
addPrefix |
should prefix be added to the new names, TRUE or FALSE. Prefix will by default be first 3 letters of the package name |
silent |
return messages at the end of evaluation, TRUE or FALSE |
num.prefix |
if you specify to addPrefix, how many letters will you like to add? |
short function names for all the functions in the package
pkg <- 'qpdf'
shortenPkg(pkg,FALSE,TRUE)