setup_r_git: Set of functions to setup default R and git configuration...

Description Usage Arguments Functions See Also Examples

View source: R/r_setup.R

Description

These functions are used to setup default .Rprofile/.Renviron/.gitconfig/.gitignore_global/.rstudio-prefs.json configurations. This settings are based on my preference and some files, e.g. .gitconfig contain info that will be specific to me personally. By default, all functions will overwrite the existing files, though this can be modified through the append argument.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
setup_r_git(append = FALSE)

setup_Rprofile(
  path = "~/.Rprofile",
  template = "template_Rprofile",
  append = FALSE
)

setup_Renviron(
  path = "~/.Renviron",
  template = "template_Renviron",
  append = FALSE
)

setup_gitconfig(
  path = "~/.gitconfig",
  template = "template_gitconfig",
  append = FALSE
)

setup_gitignore_global(
  path = "~/.gitignore_global",
  template = "template_gitignore_global",
  append = FALSE
)

setup_rstudio_prefs(
  path = "~/.config/rstudio/rstudio-prefs.json",
  template = "template_rstudio-prefs",
  append = FALSE
)

Arguments

append

logical(1) whether to append to or overwrite the path with the template.

path

character(1) path to the configuration file.

template

character(1) name of the template configuration files stored in inst/extdata

Functions

See Also

https://docs.rstudio.com/ide/server-pro/session-user-settings.html# lists all available rstudio preferences.

Examples

1
2
3
4
5
6
7
8

dzhang32/rutils documentation built on Feb. 10, 2022, 9:12 p.m.