applyCrudExpressionTree.default: Apply access expression tree

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/crud.R

Description

Default method of applyCrudExpressionTree.

Usage

1
2
3
4
## Default S3 method:
applyCrudExpressionTree(inst, type = c("has", "create",
  "read", "update", "delete"), envir = parent.frame(), fail_safe = FALSE,
  ...)

Arguments

inst

list. TODO

type

character. Type of expressions to apply.

envir

environment. Environment in which to evaluate the expressions.

fail_safe

logical. Wrap with try.

...

Further arguments to be passed to subsequent functions/methods.

Details

TODO

Value

expression.

Author(s)

Janko Thyson janko.thyson@rappster.de

References

http://github.com/rappster/crudr

See Also

createCrudExpressionTree

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
inst = list(a = list(b = 1))

tree <- createCrudExpressionTree(inst, c("a", "b", "c"),
  value = 1, fail_safe = TRUE)

applyCrudExpressionTree(tree, "has")
applyCrudExpressionTree(tree, "create")
inst
applyCrudExpressionTree(tree, "read")
applyCrudExpressionTree(tree, "update")
inst
## --> currently exactly identical to the `create` expression
applyCrudExpressionTree(tree, "delete")
inst

rappster/crudr documentation built on May 26, 2019, 11:12 p.m.