add_gitignore: add_gitignore

View source: R/add_gitignore.R

add_gitignoreR Documentation

add_gitignore

Description

Add PHS template .gitignore file to chosen directory.

Usage

add_gitignore(
  path = rstudioapi::selectDirectory(caption = "Select folder to add .gitignore"),
  append = NULL
)

Arguments

path

String: path to add .gitignore file. If left blank, will prompt the user within R Studio

append

Logical: if a .gitignore already exists, whether to append contents (TRUE) or overwrite (FALSE). If left blank will prompt the user within R Studio.

Value

Adds .gitignore file to directory, or appends content to existing file.

Examples

## Not run: 
add_gitignore()

## End(Not run)

Health-SocialCare-Scotland/phstemplates documentation built on Nov. 6, 2024, 10:08 p.m.