Learn R Programming

pathological (version 0.0-6)

r_profile: Get the location of the R profile

Description

Gets the location of the user of site R profile startup file.

Usage

r_profile(sep = c("/", "\\"))

r_profile_site(sep = c("/", "\\"))

Arguments

sep
String separator between directory levels in the output.

Value

  • A string giving the path the ".Rprofile" or "Rprofile.site". If the file cannot be found, NA is returned.

See Also

Startup for how this is calculated.

Examples

Run this code
r_profile()
r_profile_site()
r_profile("\\")
r_profile_site("\\")

Run the code above in your browser using DataLab