1
當使用兩個文件(ui.R和server.R),一個可以與改變顯示模式:R:顯示模式爲單文件光澤應用
runApp("MyApp", display.mode = "showcase")
如何設置的顯示模式爲「陳列櫃「對於單個文件閃亮的應用程序?
Thx!
當使用兩個文件(ui.R和server.R),一個可以與改變顯示模式:R:顯示模式爲單文件光澤應用
runApp("MyApp", display.mode = "showcase")
如何設置的顯示模式爲「陳列櫃「對於單個文件閃亮的應用程序?
Thx!
顯示模式可以使用DESCRIPTION文件進行更改。
細節在這個問題回答說: showcase display mode for published app in shinyapps.io
現在呢?
runApp(display.mode = 'showcase',
list(
ui=shinyUI(fluidPage(
numericInput('n', 'Number of obs', 100),
plotOutput('plot')
)),
server= shinyServer(function(input, output) {
output$plot <- renderPlot({ hist(runif(input$n)) })
})
))
我不是要求runApp()命令手動,閃亮的服務器是。有沒有辦法如何預設服務器以'showcase'模式運行? – Ollaws
現在看看這是你想要的 – TheBiro