gen_bibtex_file: Generating a BibTex file using a query to a Zotero web...

View source: R/bibliography.R

gen_bibtex_fileR Documentation

Generating a BibTex file using a query to a Zotero web library

Description

Generating a BibTex file using a query to a Zotero web library

Usage

gen_bibtex_file(
  file_dir = getwd(),
  library_name,
  collection_name = NULL,
  query = "",
  query_type = "full",
  verbose = FALSE,
  overwrite = FALSE
)

Arguments

file_dir

Optional, a BibTex file directory path (default: current)

library_name

A group library name (appearing in groups in Zotero web)

collection_name

Optional, a collection name (or vector of) belonging to the library

query

Optional, a character string to use for querying bibliographic base

query_type

Optional, a query type: "full" (the default) for searching in all the fields, or "basic" for searching only in title, creator, year fields

verbose

Optional, a logical used for displaying messages from the query process (TRUE) or not (FALSE)

overwrite

Optional, a logical for deleting existing file (TRUE), or not (FALSE, default)

Details

The output file name(s) is/are either the library name (if not any collection are given) or the collection name(s)

Value

An invisible BibEntry object or a list of

Examples

## Not run: 

# No collection
gen_bibtex_file(library_name = "GroupLibraryName")

# With a collection name
gen_bibtex_file(library_name = "GroupLibraryName", collection_name = "CollName")

# With query, searching in all fields
gen_bibtex_file(library_name = "GroupLibraryName",
collection_name = "CollName", query = "1995" )

# Getting returned BibEntry object
bibentry_obj <- gen_bibtex_file(library_name = "GroupLibraryName")


## End(Not run)



SticsRPacks/SticsPubRTools documentation built on June 13, 2025, 9:13 p.m.