Skip to contents

Extract the notes from a text

Usage

extractNotes(text)

Arguments

text

The text as a character vector

Value

An object containing the text, both in its original version and in a cleaned version, as well as the notes.

Examples

### Get path to example source
examplePath <-
  system.file("extdata", package="rock");

### Get a path to one example file
exampleFile <-
  file.path(examplePath, "example-5.rock");

### Parse single example source
loadedExample <-
  rock::load_source(exampleFile);

### Extract notes
notes <-
  rock::extractNotes(loadedExample);
#> Called from: rock::extractNotes(loadedExample)
#> debug: return(res)