Skip to contents

Add prompts for an entire subject

Usage

add_prompt_subject(preprints, ...)

Arguments

preprints

Output from get_preprints() followed by add_prompt() followed by add_summary().

...

Additional arguments to build_prompt_subject().

Value

A tibble with a subject and prompt column.

Examples

subjects <-
  example_preprints |>
  dplyr::group_by(subject) |>
  add_prompt_subject()
#> Warning: Expecting a tibble of class 'preprints_prompt' returned from get_preprints() |> add_prompt().
subjects
#> # A tibble: 2 × 2
#>   subject             prompt                                                    
#>   <chr>               <chr>                                                     
#> 1 bioinformatics      "I am giving you information about recent bioRxiv/medRxiv…
#> 2 infectious_diseases "I am giving you information about recent bioRxiv/medRxiv…