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: 3 × 2
#>   subject           prompt                                                      
#>   <chr>             <chr>                                                       
#> 1 bioinformatics    "I am giving you information about preprints published in b…
#> 2 genomics          "I am giving you information about preprints published in b…
#> 3 synthetic_biology "I am giving you information about preprints published in b…