diseasyoption | R Documentation |
Helper function to get options related to diseasy
diseasyoption(option, class = NULL, namespace = NULL, .default = NULL)
option |
( |
class |
( |
namespace |
( |
.default |
( |
If option
is given, the most specific option within the diseasy
framework for the given option and class.
If option
is missing, all options related to diseasy
packages.
# Retrieve default option for source conn
diseasyoption("source_conn")
# Retrieve DiseasystoreGoogleCovid19 specific option for source conn
diseasyoption("source_conn", "DiseasystoreGoogleCovid19")
# Try to retrieve specific option for source conn for a non existent / un-configured diseasystore
diseasyoption("source_conn", "DiseasystoreNonExistent") # Returns default source_conn
# Try to retrieve specific non-existent option
diseasyoption("non_existent", "DiseasystoreGoogleCovid19", .default = "Use this")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.