Skip to content

Commit

Permalink
use tempdir to create directory for the template
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyhodges authored Jan 27, 2025
1 parent 7a16c37 commit c44ebb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions establish-template.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ if (dir_exists(lesson)) {
}

cli::cli_alert_info("creating a new sandpaper lesson")
tmp <- tempfile()
tmpout <- file.path(tmp, "workbench-template-rmd")
tmpout <- file.path(tempdir(), "workbench-template-rmd")
gert::git_clone("https://github.com/carpentries/workbench-template-rmd", tmpout)
fs::dir_copy(tmpout, lesson)
cli::cli_alert_info("Updating workflows")
Expand Down

0 comments on commit c44ebb3

Please sign in to comment.