Hadley Wickham
Hadley Wickham
Something like: ```R function(x) { switch(x, 1, 2, 3,) } ``` Leads to something like: ``` Error in mapply(FUN = f, ..., SIMPLIFY = FALSE) : (converted from warning) longer...
Otherwise you don't get any feedback in RStudio until they're done (which might take a while)
http://jamiemorgenstern.com/papers/datasheet.pdf
Perhaps leading into/motivating a discussion of software engineering and devops?
e.g. what is dev ops...
``` r bench::mark( fs::dir_create(tempdir()), dir.create(tempdir(), showWarnings = FALSE), check = FALSE ) #> # A tibble: 2 x 6 #> expression min median `itr/sec` mem_alloc #> #> 1 fs::dir_create(tempdir()) 245µs...
Consider: ``` r library(fs) path1 $ message: chr "[ENOENT] Failed to copy '/tmp/Rtmpkbe5wh/filef26a706f1216' to '/tmp/Rtmpkbe5wh/filef26ac0c9c05': no such file or directory" #> - attr(*, "class")= chr [1:4] "ENOENT" "fs_error" "error" "condition"...