在Chrome中弹出闪亮的另存为
当我使用Rstudio IDE查看器时,单击演示应用程序上的下载会生成一个弹出窗口,我可以在其中保存文件并重命名它-是否可以在Chrome中生成此窗口在Chrome中弹出闪亮的另存为,r,shiny,R,Shiny,当我使用Rstudio IDE查看器时,单击演示应用程序上的下载会生成一个弹出窗口,我可以在其中保存文件并重命名它-是否可以在Chrome中生成此窗口 ui <- fluidPage( titlePanel("Downloading Data"), sidebarLayout( sidebarPanel( selectInput("dataset", "Choose a dataset:", choices = c("rock
ui <- fluidPage(
titlePanel("Downloading Data"),
sidebarLayout(
sidebarPanel(
selectInput("dataset", "Choose a dataset:",
choices = c("rock", "pressure", "cars")),
downloadButton("downloadData", "Download")
),
mainPanel(
tableOutput("table")
)
)
)
server <- function(input, output) {
datasetInput <- reactive({
switch(input$dataset,
"rock" = rock,
"pressure" = pressure,
"cars" = cars)
})
output$table <- renderTable({
datasetInput()
})
output$downloadData <- downloadHandler(
filename = function() {
paste("Test.csv", sep = "")
},
content = function(file) {
write.csv(datasetInput(), file, row.names = FALSE)
}
)
}
shinyApp(ui = ui, server = server)
ui问题不在于闪亮
,你应该转到chrome设置并打开
下载前询问每个文件的保存位置