zot_create_collection: Create a collection in Zotero

View source: R/create_collection.R

zot_create_collectionR Documentation

Create a collection in Zotero

Description

Create a collection in Zotero. If a collection by the same name exists, it does not create a new one, but rather outputs the id of that collection.

Usage

zot_create_collection(collection_name, user = NULL, credentials = NULL)

Arguments

collection_name

Name of the collection to be added

user

Zotero userId

credentials

Either an R object created with AuthZot(store = TRUE), or an API secret key with write access created at https://www.zotero.org/settings/keys

Details

Creating a collection needs an API with write access

Value

The key of the newly created collection (or of the pre-existing collection, if already one with the same name exists) as a character vector

Examples

## Not run: 
key <- zot_create_collection(
  user = 12345, collection_name = "ZoteroRtest",
  credentials = "<API>"
)

## End(Not run)

giocomai/zoteroR documentation built on June 12, 2025, 9:32 p.m.