Convert a column of text URLs into active hyperlinks in Shiny
You need to do two things:
Modify the last column so that the KEGGLINK is changed into a proper HTML link that looks like:
<a href='url'>link text</a>
.Pass DT the
escape = FALSE
argument so that it doesn't escape the HTML code.
The DT web page has an example of this in section 2.9:https://rstudio.github.io/DT/
A simple way to do #1 would be something like:
mydata$url <- paste0("<a href='",mydata$url,"'>",mydata$url,"</a>")