如何在渲染时自定义r Quarto pdf文档的文件名?以前,当我使用Rmarkdown时,我在YAML中使用了以下代码:
---
title: "Some title"
author: "First Last"
date: "`r format(Sys.Date(), '%d %B, %Y')`"
output: pdf_document
knit: (function(inputFile, encoding) { rmarkdown::render(inputFile, encoding = encoding, output_file = file.path(dirname(inputFile), paste0(Sys.Date(),"_Report","_FirstLast",".pdf"))) })
---
当我点击"编织"按钮时,pdf文档的文件名将是2022-08-08_Report_FirstLast.pdf
有没有办法用Quarto pdf来做到这一点?我认为需要使用quarto_render功能,但不知道如何使用.