Return the currently knitted file, without .Rxs.Rmd extension

knittedFileSansExt(x = NULL)

Arguments

x

Optionally, a filename. If NULL, knitr::current_input() is read instead.

Value

The currently knitted file, without .Rxs.Rmd extension

Examples

metabefor::knittedFileSansExt("filename.Rxs.Rmd");
#> [1] "filename"