View source: R/gi_fetch_templates.R
gi_fetch_templates | R Documentation |
Fetch gitignore template(s) from gitignore.io
gi_fetch_templates(
template_name,
copy_to_clipboard = FALSE,
append_gitignore = FALSE,
gitignore_file = here::here(".gitignore")
)
template_name |
A character vector with values included in
|
copy_to_clipboard |
Logical. Should the returned template(s) be copied to the clipboard? Otherwise, it will be printed in the console. Default is FALSE. |
append_gitignore |
Logical. Should the .gitignore be modified to include the returned template(s)? |
gitignore_file |
The path of the .gitignore file to be modified. By default, it will try to find it in the current package/project using 'here::here(".gitignore")'. |
A character containing gitignore template(s).
# Fetch template for the R language
gi_fetch_templates("R")
# You can combine many templates at once
gi_fetch_templates(c("R", "python", "java"))
# The .gitignore file can be automatically modified with `append_gitignore = TRUE`
gi_fetch_templates(c("R", "python", "java"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.