get rmarkdown context before creating new document