Description Usage Arguments Value Author(s) References See Also Examples
See generic: existsRegistryValue
1 2 3 4 5 |
id |
|
where |
|
See method
existsRegistryValue-char-env-method
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | ## Not run:
##------------------------------------------------------------------------------
## Basics //
##------------------------------------------------------------------------------
setRegistryValue(id = "test", value = TRUE)
existsRegistryValue(id = "test")
setRegistryValue(id = "a/b/c", value = 10)
existsRegistryValue(id = "a")
existsRegistryValue(id = "a/b")
existsRegistryValue(id = "a/b/c")
existsRegistryValue(id = "a/b/c/d")
existsRegistryValue(id = "c")
existsRegistryValue(id = "c/d/e")
##------------------------------------------------------------------------------
## Strictness levels //
##------------------------------------------------------------------------------
## Empty ID //
existsRegistryValue(id = character())
try(existsRegistryValue(id = character(), strict = 1))
try(existsRegistryValue(id = character(), strict = 2))
## Not-existing //
existsRegistryValue(id = "c/d/e")
try(existsRegistryValue(id = "c/d/e", strict = 1))
try(existsRegistryValue(id = "c/d/e", strict = 2))
##------------------------------------------------------------------------------
## Explicit `where` //
##------------------------------------------------------------------------------
where <- new.env()
setRegistryValue(id = "a/b/c", value = 10, where = where)
existsRegistryValue(id = "a/b/c", where = where)
existsRegistryValue(id = "a/b/c/d", where = where)
existsRegistryValue(id = "c/d/e", where = where)
##------------------------------------------------------------------------------
## Sub ID //
##------------------------------------------------------------------------------
where <- new.env()
setRegistryValue(id = "a/b/c", value = 10, where = where, sub_id = "sub")
existsRegistryValue(id = "a/b/c", where = where, sub_id = "sub")
existsRegistryValue(id = "a/b/c/d", where = where, sub_id = "sub")
existsRegistryValue(id = "c/d/e", where = where, sub_id = "sub")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.