Closed rabutler-usbr closed 4 years ago
knitr uses the following to evaluate the R code that is found in the Rmarkdown text.
code = "2+2"
eval(xfun::parse_only(code)) -> 4
to get code, knitr::process_file() calls knitr:::split_file(), but calling knitr:::split_file() does not seem to be splitting it the same way as it does internal to knitr.