我需要渲染来自目的地的动态数量的图像。但是,作为循环的结果,我只渲染了几次来自目的地的最后一幅图像。但是所有的图像必须是不同的。 我的解决方案的灵感来自于来自stackoverflow的这些答案 Shiny: Dynamic Number of Output Elements/Plots dynamically add plots to web page using shiny library(shiny)
# get all files from destination
images <- list.files("charts")
image_names <-
我正在尝试使用下面由Shiny网站提供的示例代码片段将本地图像文件呈现到Shiny应用程序界面上: ui <- fluidPage(
imageOutput("plot3")
)
server <- function(input, output, session) {
# Send a pre-rendered image, and don't delete the image after sending it
# NOTE: For this example to work, it would require fil