Skip to contents

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

if (FALSE) {
projectSkeleton(paste0(tempdir(),'/test_project'))
createGit(paste0(tempdir(),'/test_project'),type = 'report')
}