Learn R Programming

desk (version 1.1.2)

rprofile.add: Add a Command to User R Startup File Rprofile.site

Description

Adds a specified R command to file "Rprofile.site" for automatic execution during startup.

Usage

rprofile.add(line)

Value

None.

Arguments

line

a text string specifying the command to be added.

Examples

Run this code
if (FALSE) rprofile.add("library(desk)") # Makes package desk to be loaded at startup

Run the code above in your browser using DataLab