Convert a column of text URLs into active hyperlinks in Shiny

前端 未结 1 668
梦毁少年i
梦毁少年i 2020-12-24 03:08

I am creating a user interface for a pathway enrichment program. The results are shown in a table as shown below.

1条回答
  •  情话喂你
    2020-12-24 03:46

    You need to do two things:

    1. Modify the last column so that the KEGGLINK is changed into a proper HTML link that looks like: link text.

    2. 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("",mydata$url,"")
    

    0 讨论(0)
提交回复
热议问题