在有光泽的数据表中渲染图像(Render images in datatables in shiny)

编程入门 行业动态 更新时间:2024-10-26 06:27:51
在有光泽的数据表中渲染图像(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.

更多推荐

本文发布于:2023-08-05 18:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1435812.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据表   有光泽   图像   Render   datatables

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!