git
GitHub
NULL
[[]]
$
@
slot()
dplyr::case_when
try()
suppressWarnings()
suppressMessages()
purrr
map_*()
map2_*()
walk()
imap()
pmap()
reduce()
map_df*()
pluck()
flatten()
NextMethod()
$print()
lubridate::period()
lobstr::ast():
recurse_call()
expr()
exprs()
enexpr()
enexprs()
ensym()
ensyms()
exec()
do.call
source()
...
base::subset()
browser()
recover()
debug()
callr::r()
dump.frames()
Figure 10.2: How does it work? | Credits: kakaakigas.com/how-it-works/
power1 <- function(exp) { function(x) { x ^ exp } } square <- power1(2) cube <- power1(3)
power1() is the function factory and square() and cube() are manufactured functions.
power1()
square()
cube()