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

Chapter 7.3 - images not displayed when code ran #602

Open
Mkranj opened this issue Jan 7, 2023 · 1 comment
Open

Chapter 7.3 - images not displayed when code ran #602

Mkranj opened this issue Jan 7, 2023 · 1 comment

Comments

@Mkranj
Copy link

Mkranj commented Jan 7, 2023

Description

Copy-pasting the code in 7.3 leads to an app where the frame where the image should be is empty. The links to the images work, although the ones for authors don't.

Probable cause

src = file.path("puppy-photos", paste0(input$id, ".jpg")),
"puppy-photos" doesn't seem to be a valid link. Perhaps this refers to images stored on a local computer.

Potential fix

Update the link in the code above to a link to unsplash.com, according to image id.

@ArthurDentDK
Copy link

It would be cool to point directly at the URL! Unfortunately, the jpg files have different names (author-id-unsplash.jpg) online and the URL in Hadley's example only points to redirects.

Downloading the images and renaming them to match the code works, but is of course not as elegant.

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