Create a new fusen project

create_fusen(
  path,
  template = c("full", "minimal", "teaching"),
  open = TRUE,
  overwrite = FALSE,
  with_git = FALSE
)

Arguments

path

Character. Path where to create the new fusen project.

template

Character. Name of the template to be used among "full", "minimal" and "teaching".

open

Logical. Should the newly created project be opened ?

overwrite

Logical. Allow to overwrite 'dev/' files if path exists.

with_git

Logical. Should git be initialized in the newly created project ?

Value

Path to dev and flat files. Side-effect: Create a new directory to build a package

Details

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.

Examples

my_path <- tempfile("mypkg")
create_fusen(path = my_path, template = "full", open = FALSE)
#> ── Creating new directory: /tmp/RtmpNhecPP/mypkg3f9359652f07 ───────────────────
#>  Creating '/tmp/RtmpNhecPP/mypkg3f9359652f07/'
#>  Setting active project to '/tmp/RtmpNhecPP/mypkg3f9359652f07'
#>  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/RtmpNhecPP/mypkg3f9359652f07
#> ── Adding dev/flat_full.Rmd ────────────────────────────────────────────────────
#> File .here already exists in /tmp/RtmpNhecPP/mypkg3f9359652f07
#>  Added /tmp/RtmpNhecPP/mypkg3f9359652f07/dev/flat_full.Rmd, /tmp/RtmpNhecPP/mypkg3f9359652f07/dev/0-dev_history.Rmd