posit-dev / posit-dev/positron

Rendering with RMarkdown "knit" option in YAML header

Open
#3,910 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement lang: r support
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

In RStudio, I have the code below in the YAML header to customize the output file location and its name, e.g., add a date a specific name to the PDF output. I noticed that this doesn't seem to work for Positron. Would there be a different of achieving the same?

knit: (function(inputFile, encoding) { rmarkdown::render(inputFile, encoding = encoding, output_file = paste('../output/Main Analysis_', format(Sys.Date(),'%Y%m%d'),'.pdf', sep='')) })

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the YAML knit option in Positron with the provided rmarkdown::render snippet and compare its behavior with RStudio. Done means the custom output path and date-based PDF filename work in Positron, or the supported alternative is clearly identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, r
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.