I guess this could be `knitr::opts_knit$get('rmarkdown.runtime')`