check_scope: Check if a token is in a R code block in an Rmarkdown file
Description
In an RMarkdown document, tokens can be either inside an R code block or
in the text. This function will return FALSE
if the token is in the text
and TRUE
if it is in a code block. For any other files, it always returns TRUE
.
Usage
check_scope(uri, document, point)