Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Open configuration files

Source:R/edit.R
edit.Rd
  • edit_r_profile() opens.Rprofile

  • edit_r_environ() opens.Renviron

  • edit_r_makevars() opens.R/Makevars

  • edit_git_config() opens.gitconfig or.git/config

  • edit_git_ignore() opens global (user-level) gitignore file and ensuresits path is declared in your global Git config.

  • edit_pkgdown_config opens the pkgdown YAML configuration file for thecurrent Project.

  • edit_rstudio_snippets() opens RStudio's snippet config for the given type.

  • edit_rstudio_prefs() opensRStudio's preference file.

Usage

edit_r_profile(scope=c("user","project"))edit_r_environ(scope=c("user","project"))edit_r_buildignore()edit_r_makevars(scope=c("user","project"))edit_rstudio_snippets(  type=c("r","markdown","c_cpp","css","html","java","javascript","python","sql","stan","tex","yaml"))edit_rstudio_prefs()edit_git_config(scope=c("user","project"))edit_git_ignore(scope=c("user","project"))edit_pkgdown_config()

Arguments

scope

Edit globally for the currentuser, or locally for thecurrentproject

type

Snippet type (case insensitive text).

Value

Path to the file, invisibly.

Details

Theedit_r_*() functions consult R's notion of user's home directory.Theedit_git_*() functions (andusethis in general) inherit homedirectory behaviour from thefs package, which differs from R itselfon Windows. Thefs default is more conventional in terms of thelocation of user-level Git config files. Seefs::path_home() for moredetails.

Files created byedit_rstudio_snippets() willmask, not supplement,the built-in default snippets. If you like the built-in snippets, copy themand include with your custom snippets.


[8]ページ先頭

©2009-2025 Movatter.jp