View source: R/gi_write_gitignore.R
gi_write_gitignore | R Documentation |
Use the returned template(s) to append the existing .gitignore file.
gi_write_gitignore(fetched_template, gitignore_file = here::here(".gitignore"))
fetched_template |
Template(s) returned by 'gi_fetch_templates()'. |
gitignore_file |
Path of the .gitignore file to modify. |
TRUE if succeeds to write/append the .gitignore, FALSE otherwise.
## Not run:
f <- file.path(tempdir(), ".gitignore")
new_lines <- gi_fetch_templates("r")
gi_write_gitignore(new_lines, f)
unlink(f)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.