pbs-assess / csasdown

:book: An R package for creating CSAS reports in PDF or Word format with R Markdown and bookdown
Other
47 stars 17 forks source link

draft() ignores directory argument #232

Closed quang-huynh closed 1 year ago

quang-huynh commented 1 year ago

Describe the bug See title

To Reproduce

dir.create("test-folder")
setwd("test-folder")
file.create("do-not-delete.txt")
dir.create("make-report-here")

csasdown::draft(type = "resdoc", directory = "make-report-here")

Expected behavior Create report files in make-report-here

Observed behavior

seananderson commented 1 year ago

Thanks for the report of the bad bug. I've fixed it here https://github.com/pbs-assess/csasdown/commit/b3b3f8ed0c0dc62724f5ed4d5b9235c1fd5cd6a1