0

Trying to link to local server files inside a DataTable View.

Files are located on my server home folder, so links are actually linking to a local folder from Rmarkdown but remote folder from the user's browser.

Desired result is user opening Rmarkdown in a browser with datatable view and clicking a link then file is opened or downloaded.

   # df is a dataframe of filenames

    location <- "/home/user/files/"

    dt$link<- paste0("[",dt$Filename,"](", location,df$Filename ")")

    require(DT)

    datatable(df, rownames = F, filter = "top")

Filename column is rendered as simple text, no blue color, no hover , no link to file...

Regards

zx8754
  • 52,746
  • 12
  • 114
  • 209
Forge
  • 1,587
  • 1
  • 15
  • 36

0 Answers0