createGit: Add git infrastructure

View source: R/git.R

createGitR Documentation

Add git infrastructure

Description

Add git infrastructure to a project directory.

Usage

createGit(
  project_directory,
  type,
  ignore = c(".Rhistory", ".Rproj.user", "_targets", "data", "exports")
)

Arguments

project_directory

the project directory file path

type

project type. Should be one returned by projectTypes().

ignore

a character vector of files or directories for git to add to the .gitignore of the created git repository.

Examples

## Not run: 
projectSkeleton(paste0(tempdir(),'/test_project'))
createGit(paste0(tempdir(),'/test_project'),type = 'report')

## End(Not run)

jasenfinch/projecttemplates documentation built on July 30, 2023, 5:28 a.m.