Embedded URL problems - statnet/computing GitHub Wiki

Sometimes embedded urls do not work properly in html documents produced with markdown/knitr using the standard [text](url) syntax after they are uploaded to Rpubs. The diagnostic is that the links work in the html document on your local machine, but when you publish it to Rpubs clicking the link (which remains highlighted) does nothing or generates a crash icon.

See this Rstudio post for an explanation.

  • The easiest solution is to add the line <base target="_top"/> to the top of your .Rmd document. I put mine right after the yaml chunk.

  • Another solution is to use explicit html syntax for each reference. The solution on the page above has one small error (an extraneous \), so here is the corrected version.

<a href="url here" target="_top">(text to display here)</a>