Skip to contents

Create a report from bioRxiv preprints

Usage

biorecap_report(
  output_dir = ".",
  subject = NULL,
  nsentences = 2L,
  model = "llama3.1",
  use_example_preprints = FALSE,
  ...
)

Arguments

output_dir

Directory to save the report.

subject

Character vector of subjects to include in the report.

nsentences

Number of sentences to summarize each paper in.

model

The model to use for generating summaries. See ollamar::list_models().

use_example_preprints

Use the example preprints data included with the package instead of fetching new data from bioRxiv. For diagnostic/testing purposes only.

...

Other arguments passed to rmarkdown::render().

Value

Nothing; called for its side effects to produce a report.

Examples

if (FALSE) { # \dontrun{
output_dir <- tempdir()
biorecap_report(use_example_preprints=TRUE, output_dir=output_dir)
biorecap_report(subject=c("bioinformatics", "genomics", "synthetic_biology"),
                output_dir=output_dir)
} # }