powered by
Opens a specified file for editing in the system's default editor (as configured by R).
rl_open_file(path = NULL, scope = c("user", "project"))
(Invisibly) returns the path to the file opened.
Optional character string specifying the path to the file to open. If NULL (default), a .Renviron file is opened based on the value of scope.
NULL
.Renviron
scope
Character string indicating which .Renviron file to open when path = NULL:
path = NULL
user: Opens the user-level .Renviron
user
project: Opens or creates a .Renviron file in the current working directory
project
if (FALSE) { # Open user-level .Renviron open_file() }
Run the code above in your browser using DataLab