Stores API keys and preferences for the current R session in an internal
package environment. For persistence across sessions, use
pc_save_config() to write values to your .Renviron file.
Usage
pc_configure(
email = NULL,
scopus_key = NULL,
scopus_insttoken = NULL,
llm_key = NULL,
llm_provider = "anthropic",
llm_base_url = NULL,
embed_key = NULL,
embed_provider = NULL,
.overwrite = TRUE
)Arguments
Character. Your email address, used as a courtesy identifier for OpenAlex and Crossref requests (polite pool). If
NULL, falls back toPUBCLASSIFY_EMAIL.- scopus_key
Character. Elsevier Scopus API key. If
NULL, falls back to theSCOPUS_API_KEYenvironment variable.- scopus_insttoken
Character. Elsevier institutional token, used alongside
scopus_keyto authenticate off-campus COMPLETE view access. IfNULL, falls back to theSCOPUS_INSTTOKENenvironment variable. Keep this value confidential — do not commit it to version control.- llm_key
Character. API key for the LLM provider used by
pc_classify(). IfNULL, falls back to the provider-specific environment variable (e.g.ANTHROPIC_API_KEY).- llm_provider
Character. LLM provider name passed to
ellmer(e.g."anthropic","openai"). Default"anthropic".- llm_base_url
Character. Base URL for an OpenAI-compatible API endpoint. Use this when calling a non-standard provider (e.g. a local model server or a third-party OpenAI-compatible service). If
NULL, the provider's default endpoint is used. Falls back to thePUBCLASSIFY_LLM_BASE_URLenvironment variable.- embed_key
Character. API key for the embedding provider used when
use_embeddings = TRUEinpc_classify(). IfNULL, falls back to the provider-specific environment variable.- embed_provider
Character. Embedding provider name (e.g.
"openai","cohere").- .overwrite
Logical. If
FALSE, existing session values are not replaced. DefaultTRUE.