I use Quarto to generate docx files. I like to include a section at the end of the qmd file that contains useful information (the Quarto version, the R version, the date and time of rendering, machine information). This information is useful later when I need to revisit the job. When I previously used RMarkdown, I was also able to extract the name of the Rmd file that was being processed, using a trick from someone (and I don't remember where...), like this (in the Rmd file itself):
This RMarkdown document has the filename
For Quarto, the same trick does not work. Does anyone know any way to find out the name of the qmd file that is being rendered?
The quarto package can give some useful information, but not the rendering file.