Hello, all.
I'm trying to use shinyFiles in an RMarkdown file to create a button that allows the user to choose a folder from their computer. This is my code so far:
shinyServer(function(input, output) {
shinyDirChoose(input, 'data', roots=c(wd='.'), filetypes=c('', 'txt'))
})
inputPanel(shinyDirButton('data', label = "Select Data Folder", title = "Upload"))
The button renders fine when I hit the Run Document button. Unfortunately, when pressed, it won't actually open the finder dialogue to let the user choose a folder. Nothing happens.
Any help would be much appreciated! Thanks!