Skip to content

(Not) possible to set keep_md: true? #6

@stefanherzog

Description

@stefanherzog

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions