Learn R Programming

r2shortcode (version 0.2)

shortenPkg: Shorten the package

Description

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

Usage

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

Value

short function names for all the functions in the package

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?

Examples

Run this code
# \donttest{
pkg <- 'qpdf'
shortenPkg(pkg,FALSE,TRUE)
# }

Run the code above in your browser using DataLab