当使用 runApp() 从控制台运行以下闪亮应用程序时,它会按预期工作,显示绘图并提供下载嵌入绘图的 Excel 文件的功能。在闪亮的服务器上运行相同的应用程序会产生错误
无法打开文件“Rplots.pdf”
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)