get_this_rmd: Get the name and the path to the current rmd-file

Description Usage Arguments Value

Description

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().

Usage

1
get_this_rmd(ps_wd = getwd())

Arguments

ps_wd

full path of current working directory

Value

name and full path to current rmd-source file.


charlotte-ngs/rmddochelper documentation built on June 27, 2019, 1:22 a.m.