View source: R/tw_user_agent_settings.R
| tw_set_user_agent | R Documentation |
Defaults to current package name (tidywikidatar) and version.
tw_set_user_agent(user_agent = NULL)
tw_get_user_agent(user_agent = NULL)
user_agent |
Defaults to |
The user agent set for the session, implicitly.
# Default user agent
default_user_agent <- tw_get_user_agent()
default_user_agent
# Custom user agent
tw_set_user_agent(user_agent = "custom_project_name/email")
new_user_agent <- tw_get_user_agent()
new_user_agent
# Restore
tw_set_user_agent(user_agent = default_user_agent)
tw_get_user_agent()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.