View source: R/get_utterances_and_codes_from_source.R
| get_utterances_and_codes_from_source | R Documentation | 
This is a convenience function to use when displaying a source. It returns an object with the raw and clean utterances in a source, as well as the utterance identifiers and a list with vectors of the codes for each utterance.
get_utterances_and_codes_from_source(x, ...)
x | 
 Either the result of a call to   | 
... | 
 Arguments to   | 
A list containing $utterances_raw, $utterances_clean, $uids$,
$codeMatches, and $codesPerUtterance.
### Get path to example source
examplePath <-
  system.file("extdata", package="rock");
### Get a path to one example file
exampleFile <-
  file.path(examplePath, "example-1.rock");
### Parse single example source
res <-
  rock::get_utterances_and_codes_from_source(
    exampleFile
  );
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.