usethis (version 1.3.0)

edit: Open useful configuration files

Description

  • edit_r_profile() opens .Rprofile

  • edit_r_environ() opens .Renviron

  • edit_r_makevars() opens .R/Makevars

  • edit_git_config() opens .gitconfig

  • edit_git_ignore() opens .gitignore

  • edit_rstudio_snippets(type) opens ~/R/snippets/{type}.snippets

Usage

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

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

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

edit_rstudio_snippets(type = "R")

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

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

Arguments

scope

Edit globally for the current user, or locally for the current project

type

Snippet type. One of: "R", "markdown", "C_Cpp", "Tex", "Javascript", "HTML", "SQL"

Value

Path to the file, invisibly.