DS4PS / ddmp-uw-class-spring-2019

Data-Driven Management & Policy Course at UW, Spring 2019
https://ds4ps.github.io/ddmp-uw-class-spring-2019/
4 stars 3 forks source link

Problem Inserting Image and Link in Code #4

Open pearsonkm opened 5 years ago

pearsonkm commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

is what I was trying to insert

pearsonkm commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Alright! I’ll try that.

On Sun, Apr 7, 2019 at 7:17 PM ejvanholm notifications@github.com wrote:

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.

https://camo.githubusercontent.com/747c3d478311731d79b96f95d15983dd9d91f372/68747470733a2f2f63646e312e696d67676d692e636f6d2f75706c6f6164732f323031392f332f31352f35633064656466303936663264626463336164643333383635373433663761382d66756c6c2e6a7067

http://picture.jpg

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DS4PS/ddmp-uw-class-spring-2019/issues/4#issuecomment-480660041, or mute the thread https://github.com/notifications/unsubscribe-auth/AsYn9MbaXwTPrv8DCII80cDsA0X3Wy6Yks5veqadgaJpZM4chDIE .

-- Kimberly Pearson | MPA '19 University of Washington Evans School of Public Policy & Governance Pronouns: she/her/hers kp44@uw.edu | 480.859.2671