# NOT RUN {
log_file("console")
log_info("Basic information.")
dollars <- 10
log_info(~ "I have ${dollars} dollars.")
# }
# NOT RUN {
library(magrittr)
log_file("console")
iris_sub <-
iris %>%
subset(Species == "versicolor") %>%
log_info(. ~ "Keeping ${NROW(.)} versicolor rows.") %>%
transform(Ratio = Sepal.Length/Sepal.Width)
# }
Run the code above in your browser using DataLab