小编bwb*_*nfo的帖子

Shiny-server,openxlsx 绘图无法插入

当使用 runApp() 从控制台运行以下闪亮应用程序时,它会按预期工作,显示绘图并提供下载嵌入绘图的 Excel 文件的功能。在闪亮的服务器上运行相同的应用程序会产生错误

无法打开文件“Rplots.pdf”

  • 闪亮服务器 v1.4.2.786
  • Node.js v0.10.40
  • R 版本 3.3.1 (2016-06-21) -- “你头发里的虫子”
  • Ubuntu 14.04.4 LTS

    library(shiny)
    library(openxlsx)
    library(magrittr)
    
    # Define UI for application that draws a histogram
    ui <- shinyUI(fluidPage(
    
       # Application title
       titlePanel("Old Faithful Geyser Data"),
    
       # Sidebar with a slider input for number of bins 
       sidebarLayout(
          sidebarPanel(
             sliderInput("bins",
                         "Number of bins:",
                         min = 1,
                         max = 50,
                         value = 30),
             downloadButton('specDataDownload',
                            label = "Download",
                            class = NULL)
          ),
    
          # Show a plot of the …
    Run Code Online (Sandbox Code Playgroud)

r shiny shiny-server

3
推荐指数
1
解决办法
1282
查看次数

标签 统计

r ×1

shiny ×1

shiny-server ×1