createCrudExpressionTree.default: Create access expression tree

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

View source: R/crud.R

Description

Default method of createCrudExpressionTree.

Usage

1
2
3
4
## Default S3 method:
createCrudExpressionTree(inst, id = character(),
  value = NULL, name_obj = "inst", name_value = "value",
  as_name_obj = TRUE, as_name_value = FALSE, fail_safe = FALSE, ...)

Arguments

inst

list. TODO

id

character. TODO

value

ANY (BasicClasses). Optional assignment value.

name_obj

character. Name of the actual object in the expression that values are extracted from or assigned to.

name_value

character. TODO

as_name_obj

logical. TODO

as_name_value

logical. TODO

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
15
16
17
18
19
20
21
# Example object ----------------------------------------------------------

inst = list()

# No assignment value -----------------------------------------------------

tree <- createCrudExpressionTree(inst, c("a", "b", "c"))
sapply(tree, names)

createCrudExpressionTree(inst, c("a", "b", "c"), name_obj = "x")
createCrudExpressionTree(inst, c("a", "b", "c"), as_name_obj = FALSE)

createCrudExpressionTree(inst, c("a", "b", "c"), fail_safe = TRUE)

# Assignment value --------------------------------------------------------

createCrudExpressionTree(inst, c("a", "b", "c"), value = 1)
createCrudExpressionTree(inst, c("a", "b", "c"), value = 1,
  name_value = "y", as_name_value = TRUE)

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

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