From 22a3efc16e4cd560bc37ec45fc50c031f131ed3e Mon Sep 17 00:00:00 2001 From: wenjie1991 Date: Sun, 7 Jul 2024 11:08:00 +0200 Subject: [PATCH] Create db figures fold when not exists --- R/lib.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/lib.R b/R/lib.R index d8970e7..5f1cb1c 100644 --- a/R/lib.R +++ b/R/lib.R @@ -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")) }