Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
create analyses directory
Browse files Browse the repository at this point in the history
  • Loading branch information
eveyp committed Sep 25, 2021
1 parent e23b351 commit 4c336fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ create_bhhi_site = function(dir, title,
# add the analyses collection
site_yaml$collections$analyses$categories = TRUE

# create the analyses directory if it doesn't exist
if (!dir.exists(file.path(dir, "_analyses"))) dir.create(file.path(dir, "_analyses"))

# read in index.Rmd
index_yaml <- readLines(file.path(dir, "index.Rmd"), n = 5)
# delete existing index.Rmd
Expand Down

0 comments on commit 4c336fc

Please sign in to comment.