main_rmd: Determine a package's main '.Rmd' source file

main_rmdR Documentation

Determine a package's main .Rmd source file

Description

Determines which R Markdown file under ⁠Rmd/⁠ in path is the package's main source file. If multiple .Rmd files are present, the one whose name matches the package name is selected.

Usage

main_rmd(path = ".")

Arguments

path

Path to the root of the package directory.

Value

A character vector, of length 1 if a main .Rmd is found, otherwise of length 0.


salim-b/pkgpurl documentation built on June 2, 2025, 8:26 a.m.