Expected behavior
Create report files in make-report-here
Observed behavior
Created report files in getwd().
More perniciously, I was prompted to delete all files in make-report-here (weird because it was empty) but draft() then deleted everything in my working directory! However I cannot reproduce this in the above example with do-not-delete.txt.
I also suggest to add type <- match.arg(type) in the function.
Describe the bug See title
To Reproduce
Expected behavior Create report files in
make-report-here
Observed behavior
getwd()
.make-report-here
(weird because it was empty) butdraft()
then deleted everything in my working directory! However I cannot reproduce this in the above example withdo-not-delete.txt
.type <- match.arg(type)
in the function.