Wrapper to connect with the Zotero API and the main functions of *c2z*
Zotero(
collection.names = NULL,
collection.key = NULL,
collection.path = NULL,
item.key = NULL,
library = FALSE,
case.insensitive = TRUE,
ancestor = FALSE,
recursive = FALSE,
create = FALSE,
limit = 100,
start = 0,
get.collections = TRUE,
get.items = TRUE,
item.type = NULL,
all.results = TRUE,
max.results = NULL,
collections = NULL,
items = NULL,
attachments = NULL,
metadata = NULL,
doi = NULL,
isbn = NULL,
export = FALSE,
csl.type = NULL,
csl.name = "style",
format = "biblatex",
save.data = FALSE,
save.path = NULL,
bib.name = "references",
library.type = NULL,
linkwrap = 1,
style = "apa",
locale = "en-US",
copy = FALSE,
copy.collections = TRUE,
copy.items = TRUE,
copy.extras = TRUE,
remove.missing = TRUE,
change.library = FALSE,
copy.user = TRUE,
copy.id = NULL,
copy.api = NULL,
post = FALSE,
post.collections = TRUE,
post.items = TRUE,
post.attachments = TRUE,
post.limit = 50,
delete = FALSE,
delete.collections = FALSE,
delete.items = FALSE,
delete.limit = 50,
ragnarok = FALSE,
user = TRUE,
index = FALSE,
id = NULL,
token = NULL,
token.api = NULL,
api = NULL,
force = FALSE,
base.url = "https://api.zotero.org",
silent = FALSE,
zotero = NULL,
log = list()
)
A list with information on the specified Zotero library (e.g., id, API key, collections, and items)
Vector of collection names to create or search for, Default: NULL
A specified collection key, Default: NULL
Vector of nested collection keys, Default: NULL
A specified item key, Default: NULL
Use `ZoteroLibrary` to fetch collections and items, Default: FALSE
Disregard letter casing when searching for collections, Default: TRUE
Trace the lineage of a collection (i.e., find the top-level collection), Default: FALSE
Find all nested collections, Default: FALSE
Create missing collections, Default: FALSE
Number of results per query (max 100), Default: 100
Starting position of query (0 = first result), Default: 0
Fetch collections, Default: TRUE
Fetch items, Default: TRUE
Items to search for (NULL = everything), Default: NULL
Find all results in query, Default: TRUE
Do you need a limit?, Default: NULL
Predefined collections (as tibble), Default: NULL
Predefined metadata (as tibble), Default: NULL
Predefined attachments (as tibble), Default: NULL
Predefined metadata in Zoter-format, Default: NULL
Use ZoteroDoi
to fetch DOI metadata, Default: NULL
Use ZoteroIsbn
to fetch ISBN metadata, Default:
NULL
Use `ZoteroExport` to export items, Default: FALSE
Specify a CSL type to Official repository for Citation Style Language (CSL), Default: NULL
Name of saved CSL file, Default: 'style'
Export format of Zotero items, Default: 'biblatex'
Save data (e.g., bibliography) to disk, Default: FALSE
Location to store data on disk, Default: NULL
Name of exported bibliography, Default: 'references'
Commma-separated data from Zotero (i.e., data, bib, citation), Default: NULL
Set URL (e.g., DOI) as HTML link (1 = yes), Default: 1
Citation style to use for appended bibliography and/or citations, Default: apa
Desired language format of bibliography, Default: 'en-US'
Use `ZoteroCopy` to delete collections and/or items, Default: FALSE
Try to copy specified collections, Default: TRUE
Try to copy specified items?, Default: TRUE
Try to copy specified extras (i.e., attachments and notes)?, Default: TRUE
Deleted missing extras, Default: TRUE
Stage changing of library (e.g., from a group to a personal library), Default: FALSE
New user type (The functions will use `group` as prefix if FALSE), Default: TRUE
New id, Default: NULL
New API key. Set API to `NA` if key is not needed, Default: NULL
Use `ZoteroPost` to post collections and/or items, Default: FALSE
Try to copy specified collections, Default: TRUE
Try to copy specified items?, Default: TRUE
Try to copy specified extras (i.e., attachments and notes)?, Default: TRUE
Number of collections/items to post per request (max 50), Default: 50
Use `ZoteroDelete` to delete collections and/or items, Default: FALSE
Try to delete specified collections, Default: TRUE
Try to delete specified items?, Default: TRUE
Number of collections/items to delete per request (max 50), Default: 50
Delete EVERYTHING in the specified library, Default: FALSE
User type (The functions will use `group` as prefix if FALSE), Default: TRUE
Create an index of items, Default: FALSE
User or group ID, Default: NULL
Name of user or group token as defined in `.Renviron`, Default: NULL
Name of API token as defined in `.Renviron`, Default: NULL
API key to connect with the Zotero library. Set API to `NA` if key is not needed. See Zotero API, Default: NULL
Force is seldom wise, but sometimes..., Default: FALSE
Base url of the Zotero API, Default: 'https://api.zotero.org'
c2z is noisy, tell it to be quiet, Default: FALSE
A list with information on the specified Zotero library (e.g., id, API key, collections, and items), Default: NULL
A list for storing log elements, Default: list()
Please see https://oeysan.github.io/c2z/
# Create the default Zotero list
example <- Zotero(id = "9913421", api = "RqlAmlH5l1KPghfCseAq1sQ1")
# Print the interesting pars of an otherwise empty list
print(tail(example,5))
Run the code above in your browser using DataLab