hadley / mastering-shiny

Mastering Shiny: a book

Home Page:https://mastering-shiny.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

blechturm opened this issue · comments

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

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

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