posit-dev / posit-dev/positron
Rendering with RMarkdown "knit" option in YAML header
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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