Download publication or author data from DiVA

diva_download(
  set = c("pub", "aut"),
  org_id = diva_config()$id,
  year_beg = diva_config()$ybeg,
  year_end = diva_config()$yend,
  sync = FALSE,
  portal = diva_config()$portal
)

Arguments

set

dataset to use, either "pub" (default) or "aut"

org_id

organisation to filter for, by default "177" (KTH)

year_beg

first year in a range of years, default 2013

year_end

last year in a range of years, default 2022

sync

logical to indicate if sync should be made to s3 (default: FALSE)

portal

base url for links to portal, by default diva_config()$portal