[英]Can I create a dir/file via a shiny app?
In R, I can use dir.create()
function to create a dir or write.csv()
function to write a data table.在 R 中,我可以使用
dir.create()
函数创建 dir 或write.csv()
函数来编写数据表。 Is it possible to do the same things in a shiny app (instead of use the download button)?是否可以在闪亮的应用程序中执行相同的操作(而不是使用下载按钮)?
Yes, you can.是的,你可以。 See:
见:
library(shiny)
ui <- fluidPage(
h1('my app')
)
server <- function(input, output, session) {
fdir <- "BBB"
dir.create(fdir)
}
shinyApp(ui = ui, server = server)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.