2016-12-13 32 views
1

當使用兩個文件(ui.R和server.R),一個可以與改變顯示模式:R:顯示模式爲單文件光澤應用

runApp("MyApp", display.mode = "showcase") 

如何設置的顯示模式爲「陳列櫃「對於單個文件閃亮的應用程序?

Thx!

回答

1

現在呢?

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)) }) 
    }) 

)) 
+0

我不是要求runApp()命令手動,閃亮的服務器是。有沒有辦法如何預設服務器以'showcase'模式運行? – Ollaws

+0

現在看看這是你想要的 – TheBiro