When working on a reproducible research project, I would like to know the name of the Rnw file that is being run to use as an R variable.
This would be analogous to
knitr now has a method for this: current_input()
knitr
current_input()
https://github.com/yihui/knitr/issues/701