Functions to get path to and open .Renviron file that contains definitions of R environment variables.

Compared to usethis::edit_r_environ(), open_r_environ() does not create file if it does not exist.

get_path_r_environ(scope = c("user", "project"))

open_r_environ()

Arguments

scope

(character) The scope of file. One of "user" or "project".

Examples

get_path_r_environ()
#> /home/runner/.Renviron