Skip to contents

Note: end users should normally not use this function: use bm_render() instead!

Usage

parse_bookmarks(
  x,
  functionArgs = list(),
  functionList = list(),
  pattern = "qmd$|rmd$",
  recursive = TRUE,
  ignore.case = TRUE,
  clean = TRUE
)

Arguments

x

A path to a file or dir

functionArgs

A list of function arguments, with each element being the arguments to (also) supply to bookmark functions when called, and each element's name being the function's name

functionList

A list of bookmark functions (that are called by the bookmarks in the files)

pattern

The regex to match against filenames

recursive

Whether to look in subdirectories

ignore.case

Whether the regex is case sensitive (FALSE) or not (TRUE)

clean

Whether to remove the bookmarks from the files before adding the bookmark functions' results.

Value

A bookmarks_from_dir object