Skip to contents

Get paper information in a table

Usage

info_table(
  paper,
  info = c("filename", "title", "keywords", "doi"),
  path = c("relative", "absolute")
)

Arguments

paper

a paper object or a list of paper objects

info

a vector of columns to return

path

whether to return absolute or relative path for the filename

Value

a data frame with each paper id and info columns

Examples

paper <- demodir() |> read_grobid()
info_table(paper)
#> # A tibble: 3 × 5
#>   id       filename                                         title keywords doi  
#>   <chr>    <chr>                                            <chr> <chr>    <chr>
#> 1 eyecolor /home/runner/work/_temp/Library/papercheck/grob… Posi… NA       10.1…
#> 2 incest   /home/runner/work/_temp/Library/papercheck/grob… Havi… NA       NA   
#> 3 prereg   /home/runner/work/_temp/Library/papercheck/grob… Will… Pre-reg… NA