Learn R Programming

needs (version 0.0.3)

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.

Examples

Run this code
## Not run: 
# toProfile()
# ## End(Not run)

Run the code above in your browser using DataLab