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

Description Usage Arguments Functions Examples

View source: R/r_setup.R

Description

These are used to setup default Rprofile/gitconfig/gitignore_global configurations. They may be useful if you consistently need to set up new instances e.g. via docker_run_rserver.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
setup_Rprofile(
  path = "~/.Rprofile",
  template = "template_Rprofile",
  append = TRUE
)

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

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

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

Arguments

path

character(1) path to the configuration file.

template

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

append

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

Functions

Examples

1
2
3
4
5
6
7

dzhang32/rutils documentation built on April 2, 2021, 7:31 p.m.