powered by
A list where all elements are the same class.
logger(value, log = character())
Value with logging context
Character vector of logged values.
Elements to combine into a list. All elements must be the same type.
(l <- logger(5, "object created")) (l2 <- l %>>% `*`(2)) set_value <- function(x, y) { logger(y, paste(x, "->", y)) } l2 %>+% set_value(20)
Run the code above in your browser using DataLab