Description Usage Arguments Value
Analogously, to rprojroot::this_file()
, we want to determine
the name and the path to the currently active rmd-source document.
The solution with rprojroot::this_file()
works only, when the
document is knitted, but not when run from inside an R-chunk.
Given the name and the path a a rmd-source document project
follow a certain pattern, the full path and the name of an
rmd-source document can be determined based on the result
of the function getwd()
.
1 | get_this_rmd(ps_wd = getwd())
|
ps_wd |
full path of current working directory |
name and full path to current rmd-source file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.