Closed gorkang closed 6 years ago
For some reason, I don't know if this didn't happen before, but if the output folders are not created image saving failed. I created the folders and solved other problems.
Should automatically check if folder "materials/Presentation_format/nppi/input/template/png/" exists and creat it if it doesn't.
Something like this (adapted) should work?
# If Folder does not exist, create it
dir.create(file.path(folder_name), showWarnings = FALSE, recursive = TRUE)
Now the output folders of png templates, new paradigm graphs, and factbox and new paradigm output are automatically created using those lines.
# If Folder does not exist, create it
dir.create(file.path(folder_name), showWarnings = FALSE, recursive = TRUE)
(inkscape:14017): WARNING : File path "materials/Presentation_format/nppi/input/template/png/nppi_ca.png" includes directory that doesn't exist.
(inkscape:14032): WARNING : File path "materials/Presentation_format/nppi/input/template/png/nppi_pr.png" includes directory that doesn't exist.
Quitting from lines 79-96 (_main.Rmd) Error in nppi_items[[1]] : subscript out of bounds Calls: ... eval -> eval -> -> assert_image -> inherits
Please delete _main.Rmd after you finish debugging the error.
Execution halted
Exited with status 1.