Closed lemireg closed 3 months ago
@lemireg the issue is with the path
variable, because that subfolder doesn't exist yet. If you don't specify path
(equivalently, use the default of path = "."
), it should work fine (I just tested on my end).
@lemireg the issue is with the
path
variable, because that subfolder doesn't exist yet. If you don't specifypath
(equivalently, use the default ofpath = "."
), it should work fine (I just tested on my end).
Thank you @kelliemac ! I'll rerun on my end and mark the issue resolved/delete it.
if you want to create a subfolder, one way is to use e.g. usethis::use_directory('BAMA')
and then run use_visc_report(report_name = ..., path = 'BAMA', report_type = 'bama')
or you can manually make the subfolder before running use_visc_report
we could potentially make use_visc_report
do that first step automatically if the subfolder specified in path
doesn't exist yet.
we could also add a note to the vignette https://github.com/FredHutch/VISCtemplates/blob/main/vignettes/using_pdf_and_word_template.Rmd about the subfolder needing to be created before running use_visc_report
if you want to create a subfolder, one way is to use e.g.
usethis::use_directory('BAMA')
and then runuse_visc_report(report_name = ..., path = 'BAMA', report_type = 'bama')
or you can manually make the subfolder before running
use_visc_report
we could potentially make
use_visc_report
do that first step automatically if the subfolder specified inpath
doesn't exist yet.
@kelliemac , I've rerun and I see what you mean. I'm thinking for now I'll add a note to the vignette, and then I can make an issue to make some adjustments to the code to create a directory if it doesn't exist already in the use_visc_report()
.
@lemireg that sounds like a great plan!
I just realized this is a duplicate of https://github.com/FredHutch/VISCtemplates/issues/124 so we can close both of these issues at the same time, hopefully
skeleton.Rmd
file is not being created when usinguse_visc_report()
to generate an assay specific folder, skeleton (for the report) and methods folder (with background, statistical-methods, lab-methods rmds)To Reproduce Steps to reproduce the behavior:
use_visc_report()
Screenshots Error message (while using
report_type = "generic"
) Screenshot of no skeleton.Rmd file being created (while usingreport_type = "BAMA"
) Same issue for thereport_type = "nab"
argument: for `report_type = "empty", no folder is being created whatsoever in the analysis repo:Additional Information: Saw this while discussing creating a test for the Rmd rendering with Dave on May 23, 2024.
sessionInfo()
: