| ragnar_store_ingest | R Documentation |
ragnar_store_ingest() distributes document preparation work over multiple
processes using mirai. Each worker calls prepare
on a single path and returns the resulting chunks (and any warnings) to the
main process, which then writes them to the store.
ragnar_store_ingest(
store,
paths,
prepare = function(path) markdown_chunk(read_as_markdown(path)),
n_workers = NULL,
progress = TRUE,
build_index = TRUE
)
store |
A |
paths |
Character vector of file paths or URLs to ingest. |
prepare |
Function that converts a single path into a
|
n_workers |
Number of worker processes to use. Defaults to the smaller of
|
progress |
Logical; if |
build_index |
Logical; whether to call |
store, invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.