papaja (Preparing APA Journal Articles) is an R package that provides document formats to produce complete APA manuscripts from RMarkdown-files (PDF and Word documents) and helper functions that facilitate reporting statistics, tables, and plots.
Regarding your suggestion on sanitize_terms(), I think this would make sense. If you want to add this to this PR, feel free and also feel free to merge.
Hi @crsh,
so this is an attempt at fixing what has been described in issue #583.
expect_apa_results()
to protect against future glitches.sanitize_terms()
.sanitize_terms()
now always replaces multiple consecutive underscores with a single underscore.In addition to what I implemented here, we could consider
sanitize_terms()
to always remove leading underscores.