hadley / mastering-shiny

Mastering Shiny: a book
https://mastering-shiny.org/
Other
1.33k stars 566 forks source link

neiss download path in basic-case-study.Rmd broken #605

Open blechturm opened 1 year ago

blechturm commented 1 year ago

Hi,

the download path to the neiss data is broken. This hack works:

download <- function(name) { url <- "https://raw.githubusercontent.com/hadley/mastering-shiny/5d398fd655775cbcf278dadf46bfc78af2a0cb11/neiss/" download.file(paste0(url, name), paste0("./neiss/", name), quiet = TRUE) }

Best Max

albertme0308 commented 1 year ago

Simplier: download <- function(name) { url <- "https://raw.githubusercontent.com/hadley/mastering-shiny/main/neiss/" download.file(paste0(url, name), paste0("neiss/", name), quiet = TRUE) }

PedroMassaro commented 1 year ago

I was having trouble with this thread, but with your code, everything is correct now. Thanks!