I am building an R package.
==> devtools::document(roclets = c('rd', 'collate', 'namespace', 'vignette'))
Updating package documentation
Writing NAMESPACE
Loading package
.
.
.
Writing NAMESPACE
Updating vignettes
Rebuilding projectR.Rmd
I get the following error after this
Error in if (idx > 0) sprintf("default-%s.tex", template_versions[idx]) else "default.tex" :
missing value where TRUE/FALSE needed
Calls: suppressPackageStartupMessages ... create_output_format -> do.call -> <Anonymous> -> create_latex_template
Execution halted
Exited with status 1.
I am not sure what is causing the error. I thought because it calls roxygen2::roxygenize, it may be originating from there but the package doesn't contain this error message. Can someone please guide me in resolving this?