Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R deleteFile=FALSE,呈现图像不工作_R_Shiny - Fatal编程技术网

R deleteFile=FALSE,呈现图像不工作

R deleteFile=FALSE,呈现图像不工作,r,shiny,R,Shiny,我对renderImage的deleteFile=FALSE参数有问题。简而言之,它会删除图像文件 作为一个简短的测试示例,我有ui.R library(shiny) shinyUI(fluidPage( titlePanel("Testing ..."), sidebarLayout( sidebarPanel(), mainPanel( imageOutput("f1

我对renderImage的deleteFile=FALSE参数有问题。简而言之,它会删除图像文件

作为一个简短的测试示例,我有ui.R

 library(shiny)              
 shinyUI(fluidPage(
   titlePanel("Testing ..."),  
   sidebarLayout(   
       sidebarPanel(),            
       mainPanel(
          imageOutput("f1")
       )
   )     
 ))
和服务器

library(shiny)

shinyServer(function(input, output,session) {

   output$f1 <- renderImage({
      list(src="f1.png", deleteFile = FALSE)
   }) 
})
库(闪亮)
shinyServer(功能(输入、输出、会话){
输出$f1尝试:

库(闪亮)
shinyServer(功能(输入、输出、会话){
输出$f1
output$f1 <- renderText({
    HTML("<img src=\"f1.png\">")
})
library(shiny)

shinyServer(function(input, output,session) {

   output$f1 <- renderImage({
      list(src="f1.png")
   }, deleteFile = FALSE) 
})