edit

0th

Percentile

Open useful configuration files

  • 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.

Aliases
  • edit
  • edit_r_profile
  • edit_r_environ
  • edit_r_makevars
  • edit_rstudio_snippets
  • edit_git_config
  • edit_git_ignore
Documentation reproduced from package usethis, version 1.3.0, License: GPL-3

Community examples

Looks like there are no examples yet.