rmarkdown scope changed