Create a new fusen project
create_fusen(
path,
template = c("full", "minimal", "teaching"),
open = TRUE,
overwrite = FALSE,
with_git = FALSE
)
Character. Path where to create the new fusen project.
Character. Name of the template to be used among "full", "minimal" and "teaching".
Logical. Should the newly created project be opened ?
Logical. Allow to overwrite 'dev/' files if path exists.
Logical. Should git be initialized in the newly created project ?
Path to dev and flat files. Side-effect: Create a new directory to build a package
See add_flat_template
for details about the different options for template
.
Template "additional" is not available here as it is meant to be used with an already
existing fusen.
my_path <- tempfile("mypkg")
create_fusen(path = my_path, template = "full", open = FALSE)
#> ── Creating new directory: /tmp/Rtmp3Vk9Ap/mypkg3f5839a99791 ───────────────────
#> ✔ Creating '/tmp/Rtmp3Vk9Ap/mypkg3f5839a99791/'
#> ✔ Setting active project to '/tmp/Rtmp3Vk9Ap/mypkg3f5839a99791'
#> ✔ Creating 'R/'
#> ✔ Writing a sentinel file '.here'
#> • Build robust paths within your project via `here::here()`
#> • Learn more at <https://here.r-lib.org>
#> ✔ Setting active project to '<no active project>'
#> ✔ New directory created: /tmp/Rtmp3Vk9Ap/mypkg3f5839a99791
#> ── Adding dev/flat_full.Rmd ────────────────────────────────────────────────────
#> File .here already exists in /tmp/Rtmp3Vk9Ap/mypkg3f5839a99791
#> ✔ Added /tmp/Rtmp3Vk9Ap/mypkg3f5839a99791/dev/flat_full.Rmd, /tmp/Rtmp3Vk9Ap/mypkg3f5839a99791/dev/0-dev_history.Rmd