Recently I asked about having an r variable set to the name of an Rmd file when knitr runs.
Need the filename of the Rnw when knitr runs in rStudio
knitr:::.knitEnv$input.dir
knitr:::knit_concord$get("infile")
Is there a similar knitr::: object for the name of an Rmd file?