在有光泽的数据表中渲染图像(Render images in datatables in shiny)
有没有办法在闪亮的数据表中渲染图像?
如果我尝试添加标签
paste(<img src="http://test.com/img/', x, '.jpg" height=52></img>', sep='')作为列的一部分(我想在其中显示图像)它只是吐出html标签而不是图像。
Is there a way to render images in a datatable in shiny ?
If I try adding the tag
paste(<img src="http://test.com/img/', x, '.jpg" height=52></img>', sep='')as part of the column (in which i want to show the image) it just spits out the html tag and not the image.
最满意答案
正如@bunk所提到的,escape = FALSE适用于将图像嵌入数据表中。
As @bunk mentioned, escape=FALSE works for embedding the images in a datatable.
更多推荐
发布评论