Existence aware pick operator
Arguments
- env
(
object
)
The object or environment to attempt to pick from- field
(
character
)
The name of the field to pick fromenv
Examples
t <- list(a = 1, b = 2)
t$a # 1
#> [1] 1
t %.% a # 1
#> [1] 1
t$c # NULL
#> NULL
if (FALSE) {
t %.% c # ERROR a not found in t
}