adding support for knitr R syntax ({r}, {r, opts}