output$down<-downloadHandler(
filename = function(){
paste(input$dataset,fileext(),sep = ".") # example : iris.csv,iris.doc,iris.txt
},
content = function(file){
sep<-switch (input$format,"Excel(CSV)"=",","Text(TSV)"="\t","Text(Space Separated)"=" ","Doc"=" ")
write.table(datasetInput(),file,sep=sep,
row.names=FALSE)
}
)
想知道write.table()里的file为何后面什么都没有,我在help里查的形式是file=“”,求大神解答,我这个程序里file是什么意思,如果变成file=“xxx”又是什么意思