Skip to content

Commit

Permalink
make the directory exists before writing to it #138
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Jul 18, 2024
1 parent 87acb14 commit 0f94a56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/default_organisation.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#' @family both
default_organisation <- function(org = organisation$new()) {
assert_that(inherits(org, "organisation"))
R_user_dir("checklist", which = "config") |>
target <- R_user_dir("checklist", which = "config")
dir_create(target)
target |>
path("organisation.yml") |>
write_yaml(x = org$template)
return(invisible(NULL))
Expand Down

0 comments on commit 0f94a56

Please sign in to comment.