gorkang / R_conditions_creation

0 stars 0 forks source link

Error building book #32

Closed gorkang closed 6 years ago

gorkang commented 6 years ago

(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.

nik0lai commented 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.

gorkang commented 6 years ago

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)
nik0lai commented 6 years ago

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)