shortenPkg: Shorten the package

Description Usage Arguments Value Examples

View source: R/shortenPkg.R

Description

This will create shorthand functions for functions in a package. This function brings together most functions in this package.

Usage

1
shortenPkg(pkg, addPrefix = TRUE, silent = FALSE, num.prefix = 3)

Arguments

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?

Value

short function names for all the functions in the package

Examples

1
2
pkg <- 'qpdf'
shortenPkg(pkg,FALSE,TRUE)

r2shortcode documentation built on July 2, 2020, 4:15 a.m.