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

Problem Inserting Image and Link in Code #4

Open
pearsonkm opened this issue Apr 7, 2019 · 6 comments
Open

Problem Inserting Image and Link in Code #4

pearsonkm opened this issue Apr 7, 2019 · 6 comments

Comments

@pearsonkm
Copy link

To post an image in the R Markdown, can you write it directly in R Markdown or do you have to insert a chunk in R?

I wrote the following just on its own and within an R chunk and I keep getting an error message...

Me

Error: unexpected '[' in "!["

The same thing happens when I try to insert a link.

Evans School of Public Policy & Governance

Error: unexpected '[' in "["

@ejvanholm
Copy link
Collaborator

You should not be writing in an R chuck when you upload an image or link, so that isn't the problem. I'm not sure why you're getting that error message though, and the strange thing is when you tried to upload a link in the question it worked.

Can you copy in more of your code to help identify the issue?

@pearsonkm
Copy link
Author

Okay, sure, here is more of my code. Good to know that the link worked at least!

Kimberly Pearson, MPA Candidate

Hi! My name is Kim Pearson and I am an MPA candidate at the University of Washington. I graduate this June with a focus in policy analysis. I studied Sustainability (Economics) and Spanish Literature and Culture at Arizona State University from 2008-2012. I am originally from Phoenix, AZ, which was a great place to learn about sustainability challenges and successes at the local level, especially in regards to climate, transportation, urban planning, and energy. I also spent time learning about social policy issues, such as immigration, civil rights, and labor. I came to the Evans School to learn quantitative and qualitative data analysis skills that can then apply to these social and environmental policy issues at the local level.

My Home Department

Evans School of Public Policy & Governance

Interest In The Course And What Scares You About It

I am very interested in this course because I would like to assist decision makers and analysts in understanding complex policy issues in areas like transportation, the environment, and social welfare. I took Visual Analytics with Professor Magallanes and really enjoyed learning the power of R to create helpful and impactful graphics of data. I aim to apply these skills at the local government level, helping both internal and external stakeholders better understand and interact with key policy issues.

In terms of what scares me about the course, I want to make sure that I practice using R enough so that I can easily remember how to undertake key functionalities. I want to avoid falling out of practice from one week to the next.

Three Things About Me

  1. I have lived in several different places since undergrad at Arizona State University: Boulder, Colorado; Bocas del Toro, Panama; and now Seattle, WA.
  2. I love to hike and go outside, especially to see all the moss, mushrooms, and flowers here in the Pacific Northwest! I am trying to learn how to identify different mushroom species.
  3. I am an avid dancer, having learned salsa, bachata, and merengue. In Seattle, I am starting to learn Norwegian dancing, which doesn't come as easily, but is incredibly rewarding once you get the steps right.

Favorite Quote

@pearsonkm
Copy link
Author

is what I was trying to insert

@pearsonkm
Copy link
Author

pearsonkm commented Apr 8, 2019

My code isn't showing up but I was trying to insert:

link = https://cdn1.imggmi.com/uploads/2019/3/15/5c0dedf096f2dbdc3add33865743f7a8-full.jpg

@ejvanholm
Copy link
Collaborator

I'm not sure what the issue is. The link itself works, so I'm not sure why R isn't interpreting it correctly. I've plugged it into my document and I got a message that it couldn't fetch the link. Figuring out why it doesn't work is more important that the assignment, but you could also save the picture in the file with your Markdown document and link it there using the same code essentially.

@pearsonkm
Copy link
Author

pearsonkm commented Apr 8, 2019 via email

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