Skip to contents

Create a report from bioRxiv/medRxiv preprints

Usage

biorecap_report(
  output_dir = ".",
  subject = NULL,
  nsentences = 2L,
  model = "llama3.2",
  host = NULL,
  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().

host

The base URL to use. Default is NULL, which uses Ollama's default base URL.

use_example_preprints

Use the example preprints data included with the package instead of fetching new data from bioRxiv/medRxiv. 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)
} # }