toProfile: Append to Rprofile in current working directory.
Description
Exports the package functionality to .Rprofile in the current working
directory. Now the same code you run can be run on another system without
requiring any extra installation or throwing errors for uninstalled packages.
Usage
toProfile(dir = NULL, append = T)
Arguments
dir
Target directory for Rprofile. Defaults to working directory.
append
Whether to append to the current Rprofile, if one exists. Set
to false to overwrite.