prereg
prereg copied to clipboard
(Not) possible to set `keep_md: true`?
Next to knitting the .Rmd to a PDF, I would like to keep the intermediary markdown (.md) file (e.g., to commit it as a plain text to the repo and, say, www.OSF.io). I tried to add the keep_md: true option, but with no success (see the MRE below). (I hope it's not because I messed up with the white spaces.) If prereg does not support this option, would it be cumbersome to add it?
Thanks!
---
title : "My preregistration for the COS Preregistration Challenge"
shorttitle : "My preregistration"
date : "`r Sys.setlocale('LC_TIME', 'C'); format(Sys.time(), '%d\\\\. %B %Y')`"
author:
- name : First Author
affiliation : 1
- name : Ernst-August Doelle
affiliation : "1,2"
affiliation:
- id : 1
institution : Wilhelm-Wundt-University
- id : 2
institution : Konstanz Business School
output:
prereg::cos_prereg:
keep_md: true
---
# Study Information
Lorem Ipsum
gives
Error in (function (toc = FALSE, toc_depth = 2, number_sections = FALSE, :
unused argument (keep_md = TRUE)
Calls: <Anonymous> ... create_output_format -> do.call -> <Anonymous> -> do.call -> <Anonymous>
Execution halted
Hey Stefan, I realize it's been a while (sorry). I just tried to reproduce the problem and it appears it has been resloved in the meantime. Is this still an issue for you?
@crsh : Thanks for taking this up again! I've just run the above MRE again and didn't get an error, but I also cannot find the markdown document. Maybe I've just missed it. If you ran the MRE, can you find the markdown file?
Below are some session infos.
R version 4.1.1 (2021-08-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7
prereg_0.5.0
workflowr_1.6.2
rmarkdown_2.11
yaml_2.2.1
knitr_1.34
That's odd. It did retain the markdown file for me.
@crsh : I just tried it again. The HTML of the Rmd file appears in docs, but I can't find the .md file. Where did you find your .md file? Can you share your MRE with me? That may help me find out whether there's something else/additional in my setup that is creating the problem.