createGit | R Documentation |
Add git infrastructure to a project directory.
createGit(
project_directory,
type,
ignore = c(".Rhistory", ".Rproj.user", "_targets", "data", "exports")
)
project_directory |
the project directory file path |
type |
project type. Should be one returned by |
ignore |
a character vector of files or directories for git to add to the .gitignore of the created git repository. |
## Not run:
projectSkeleton(paste0(tempdir(),'/test_project'))
createGit(paste0(tempdir(),'/test_project'),type = 'report')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.