Description Usage Arguments Value Author(s) References See Also Examples
See generic: setMetaValue
| 1 2 3 4 5 6 7 | ## S4 method for signature 'character,ANY,character'
setMetaValue(id, value,
  where = tryCatch(devtools::as.package(".")$package, error = function(cond) {
      stop("Invalid default value for `where`") }), sub_id = character(),
  fail_value = NULL, force = FALSE, gap = TRUE, must_exist = FALSE,
  reactive = FALSE, return_status = TRUE, strict = c(0, 1, 2),
  typed = FALSE, ...)
 | 
| id | 
 | 
| value | 
 | 
| where | 
 | 
| sub_id | 
 | 
| fail_value | 
 | 
| force | 
 | 
| gap | 
 | 
| must_exist | 
 | 
| reactive | 
 | 
| return_status | 
 | 
| strict | 
 
 | 
| typed | 
 | 
logical. TRUE.
Janko Thyson janko.thyson@gmail.com
http://github.com/Rappster/optionr
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ## Not run: 
##------------------------------------------------------------------------------
## Default location of option container //
##------------------------------------------------------------------------------
## NOTE
## Obmitting `where` (and `id` in `initializeOptionContainer()`) in the all 
## calls will assign the overall option container to the package/project 
## name (if `hidden = TRUE` it is additionally prepended by a `.`)
initializeOptionContainer(overwrite = TRUE)
setMetaValue(id = "x_1", value = 10)
getMetaValue(id = "x_1")
##------------------------------------------------------------------------------
## Explicit location of option container //
##------------------------------------------------------------------------------
initializeOptionContainer(id = "test", overwrite = TRUE)
setMetaValue(id = "x_1", value = 10, where = "test")
getMetaValue(id = "x_1", where = "test")
##------------------------------------------------------------------------------
## Sub ID //
##------------------------------------------------------------------------------
initializeOptionContainer(sub_id = "a", overwrite = TRUE)
setMetaValue(id = "x_1", value = 10, sub_id = "a")
getMetaValue(id = "x_1", sub_id = "a")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.