View source: R/modify_config.R
modify_config | R Documentation |
Modifies the configuration file located in the specified root directory of
the generated database (config/config.json
) by updating values
corresponding to the specified keys.
modify_config(path, keys, new_values, verbose = TRUE)
path |
[mandatory] (character) The path to the root directory of the generated database. |
keys |
[mandatory] (list) A list specifying the path to the values in the configuration file that need updating. Each path should correspond to a specific element in the configuration. |
new_values |
[mandatory] (list) A list of new values to replace the
original values at the locations specified by 'keys'. The length of
|
verbose |
[optional] (logical) If |
No return value, called for side effects.
# Example: Modifying the configuration file
## Not run:
modify_config(
path = "path/to/db",
keys = list("limit", c("source", "MODIS/061/MOD13A2", "NDVI")),
new_values = list(1000, "mean")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.