Description Usage Details Value Examples
View source: R/current_document.R
get_current_document()
makes a guess at what the path to the current
document is. Returns the character "console"
when it can't find the
document. This is a decent proxy for finding the document this function was
run in.
1 |
When executed interactively within RStudio, it reports the currently opened document at the time of execution. If the active document is switched between queuing this function and execution, the document of origin might be misreported.
A character
with the path to the document
1 | doc <- get_current_document()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.