efficientR icon indicating copy to clipboard operation
efficientR copied to clipboard

Update data carpentry section

Open Robinlovelace opened this issue 4 years ago • 1 comments

  • [ ] description of tibble may be out of date
  • [ ] check tidy descriptions
  • [ ] Do exercises still make sense
  • [ ] Rerun comparisons
  • [ ] warnings in 6.4.5
  • [ ] rlang warnings

Robinlovelace avatar Apr 28 '20 10:04 Robinlovelace

Initial thoughts:

  • description of tibble may be out of date
  • check tidy descriptions
  • Do exercises still make sense
  • Rerun comparisons
  • warnings in 6.4.5
  • rlang warnings

Broken URLs

files = list.files(".", pattern = "*.Rmd")
urls = suppressWarnings(system2("grep", c("-Eo \"(http|https)://[a-zA-Z0-9\\.\\+:/?=_-]*\"", 
                                          files[5]), stdout = TRUE))

for (url in urls) {
  ping = try(httr::GET(url), silent = TRUE)
  if (class(ping) == "try-error") {
    cli::cat_bullet(glue::glue("{url}: {ping}"))
  } else if (ping$status != 200) {
    cli::cat_bullet(glue::glue("{url}: {ping$status}"))
  }
}

csgillespie avatar Apr 28 '20 10:04 csgillespie