as_item_tibble: Convert Zotero library items list to a tibble

View source: R/items.R

as_item_tibbleR Documentation

Convert Zotero library items list to a tibble

Description

Converts an items list as returned by items(as_tibble = FALSE) to a tibble (with nested list columns), dropping API metadata fields that are not part of the items data.

Usage

as_item_tibble(items)

Arguments

items

A list of Zotero library items as returned by items().

Details

Note that items() by default already calls this function internally (as_tibble = TRUE).

Value

A tibble.

See Also

Other Zotero items functions: add_archive_url(), items(), write_bib()

Examples

# fetch raw result (2 items)
r <- zotero_api(
  path = "items",
  user = zotero_group_id(197065),
  query = list(limit = 2),
  fetch_subsequent = FALSE
)

str(r)

# convert to tibble
as_item_tibble(r)

mbojan/zoterro documentation built on Oct. 18, 2023, 12:10 p.m.