Skip to content

Commit

Permalink
Create db figures fold when not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie1991 committed Jul 7, 2024
1 parent 6c07d25 commit 22a3efc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/lib.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ fd_plot = function(fdObj, id) {
fd_init = function(dir, recursive = TRUE) {
if (!dir.exists(dir)) {
dir.create(dir, recursive = recursive)
}
if (!dir.exists(file.path(dir, "figures"))) {
dir.create(file.path(dir, "figures"))
}

Expand Down

0 comments on commit 22a3efc

Please sign in to comment.