Description Usage Arguments Examples
Motivated by usethis::use_template, but needed to be liberated from always using usethis::proj_path as hard-coded directory.
1 2 3 4 5 6 7 8 | use_template(
template,
save_as = template,
data = list(),
ignore = FALSE,
open = FALSE,
package = .env_package_name()
)
|
template |
[character] File name of template (within
|
save_as |
[character] File name of the resulting file |
data |
[list] Data to pass on to template (names need to match placeholder) |
ignore |
[logical]
|
open |
[logical]
|
package |
[character] Package name |
1 | use_template("Dockerfile", save_as = tempfile())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.