Description Usage Arguments Details Value Examples
View source: R/create_collection.R
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.
1 | zot_create_collection(collection_name, user = NULL, credentials = NULL)
|
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 |
Creating a collection needs an API with write access
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
1 | key <- zot_create_collection(user = 12345, collection_name = "ZoteroRtest", credentials = "<API>")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.