You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Martina Morris edited this page May 7, 2021
·
1 revision
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.
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>