Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL for neiss data in chapter 5 #609

Open
rahsan78 opened this issue Mar 6, 2023 · 1 comment
Open

URL for neiss data in chapter 5 #609

rahsan78 opened this issue Mar 6, 2023 · 1 comment

Comments

@rahsan78
Copy link

rahsan78 commented Mar 6, 2023

hi,
To access the neiss data in chapter 5 the following URL is in the book as well as online version of the book.
given url : https://github.com/hadley/mastering-shiny/raw/master/neiss/

however this throws a 404 error. I can see there has been some changes in the branch. I have used the following and able to download the files.

url used : https://github.com/hadley/mastering-shiny/blob/main/neiss/

may be worth in changing the URL at lease on the online version of the book ?

regards

Mohammad Ahsan

@ayoraind
Copy link

ayoraind commented Dec 27, 2023

Totally agree @rahsan78

In my case (Chapter 4), I had to use

https://raw.githubusercontent.com/hadley/mastering-shiny/main/neiss/

So, the function then looks like this

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

I commented out the url stated in the online version of the book for emphasis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants