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

embedding a photo from the repo #18

Open
nbrown20 opened this issue Oct 4, 2020 · 14 comments
Open

embedding a photo from the repo #18

nbrown20 opened this issue Oct 4, 2020 · 14 comments

Comments

@nbrown20
Copy link

nbrown20 commented Oct 4, 2020

hi! I am trying to embed a photo in my markdown file from my repo but I keep getting an error. I've tired multiple paths but I basically keep getting "File lou.jpeg not found in resource path". What should I try next?

@djanvier
Copy link

djanvier commented Oct 4, 2020

Hello. Would you be able to copy and paste the code you used? I see the image in your repo, so you should be able to use a relative file path.

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

sure, thanks!

i tried
and
and

is the code showing? it's not in the preview of my message -- ill attach an image

Screen Shot 2020-10-03 at 8 32 36 PM

@djanvier
Copy link

djanvier commented Oct 4, 2020

The first line of code you tried ![](lou.jpeg) looks correct. I'm not sure why it's not working. Could you push your most recent changes to GitHub?
Also, you can insert code in your comments using two backticks `` or include a reproducible example using the reprex package

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

sure, i'll try -- thanks!

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

Screen Shot 2020-10-03 at 9 10 28 PM

this is the message I get

@djanvier
Copy link

djanvier commented Oct 4, 2020

Oh, I see now! So this error means that some changes were made on GitHub that were not reflected locally. My guess is that it's referring to the photo you added on GitHub. In order for the repos to be the same, you need to pull from the repository on GitHub and then push your changes. If you pull correctly, the photo should be in the same folder as the README.md in your local version of R Studio. Let me know if you have any trouble with this!

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

thank you! do I have to create a new project to do this after I copy the code? thanks for your help so far!

@djanvier
Copy link

djanvier commented Oct 4, 2020

Nope! You should just be able to pull the changes from GitHub to your local repository.

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

It is not allowing me to pull the changes? Is git pull not the right command?

@deblnia
Copy link

deblnia commented Oct 4, 2020

What’s the error message you’re seeing when you run git pull?

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

Error: unexpected symbol in "git pull"

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

thanks for all this help :)

@deblnia
Copy link

deblnia commented Oct 4, 2020

Are you using the R console or the terminal tab? If that doesn’t mean much to you, try the git tab (to the right of the environment pane). You can click pull there.

@nbrown20
Copy link
Author

nbrown20 commented Oct 4, 2020

ohhh I see -- thank you so much!

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

3 participants