title: how to insert image from url in markdown
body: <p>The way to insert an image to markdown file is (and it is outside "<code>{r}</code>")</p>
  
  <pre><code>&lt;center&gt;&lt;src="http://ia.media-imdb.com/images/M/MV5BMTg4NzEyNzQ5OF5BMl5BanBnXkFtZTYwNTY3NDg4._V1._CR24,0,293,443_SX214_AL_.jpg"&gt;&lt;/center&gt;
  </code></pre>
  
  <p>But I want to make url as a variable. So I tried something like this:</p>
  
  <pre><code>```{r, result='asis'}
  url &lt;- "http://www.online-image-editor.com//styles/2014/images/example_image.png"
  print(paste("&lt;center&gt;&lt;src=\"", url, "\"&gt;&lt;/center&gt;", collapse=""))
  ```
  </code></pre>
  
  <p>But it doesn't work. The result I get</p>
  
  <pre><code>## [1] "&lt;center&gt;&lt;src=\" http://ia.media-imdb.com/images/M/MV5BMTg4NzEyNzQ5OF5BMl5BanBnXkFtZTYwNTY3NDg4._V1._CR24,0,293,443_SX214_AL_.jpg \"&gt;&lt;/center&gt;"
  </code></pre>
  
  <p>Is there any chance to make the string of characters like on the top of my question so get rid of <code>## [1]</code> and quotes?</p>