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

1

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.

Examples

1
2
3
4
## Not run: 
toProfile()

## End(Not run)