ctxR_options | R Documentation |
ctxR stores options as a named list in R's global options, i.e.
getOption('ctxR')
. It currently stores two such options, one for CCTE
credentialing and one to suppress private API information in the URLs printed
to the screen when web queries are placed. For both of those, see
register_ctx_api_key()
.
set_ctxR_option(...)
has_ctxR_options()
has_ctxR_option(option)
... |
a named listing of options to set |
option |
a specific option to query, e.g. |
set_ctxR_option()
does not have a return value but has the side effect
of setting options used by other functions.
has_ctxR_option()
returns a Boolean.
has_ctxR_options()
returns a Boolean.
register_ctx_api_key()
# Set ctxR options
set_ctxR_option('display_api_key' = FALSE)
# Check if there are options registered to 'ctxR'
has_ctxR_options()
# Check if a specific option is registered for 'ctxR'
has_ctxR_option('display_api_key')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.