MLWIC2
MLWIC2 copied to clipboard
Unable to Select directory under Make input files for MLWIC2
When I type the command MLWIC2::runShiny('make_input') the menu from 127.0.0.1:xxxx loads. I can pick my option, in this case 4; however when I click the button "Directory to store Input file" and select a folder the menu goes gray and doesn't actually select anything. Oddly enough if I leave the Option number set to 1 I can select a directory.
The other thing is you cannot click on a folder and browse down into sub folders. Once you attempt to browse down into a folder, or get out by clicking Select, if you go back in the directory structure will not show.
Not sure what I'm doing wrong, but I can't get it to work. I'm running on a Windows 10 machine.
The menus under MLWIC2::runShiny('setup') worked fine. Thanks in advance to anyone who can help.
More info
When I go back to the R console and click escape this is what I see.
NOTE: When selecting directories, you can only navigate in the top half of the screen.
The bottom half of the screen only displays what is in each directory. It is not clickable.
Loading required package: shiny
Listening on http://127.0.0.1:6017
character(0)
character(0)
character(0)
Warning: Error in [: object of type 'closure' is not settable
46: sendDirectoryData
45:
The message about selecting and navigating in the top half of screen may be part of it, but on my screen the Select button is visible and clickable, and the top half of the screen really only let's me Create a new directory (I'm not even sure that works) or sort content or click on the pencil icon or select other root directories on my computer. There is also the refresh button. I can see no way to select a directory in either the top or bottom half of the menu window.
Sounds like the same issue described here.
Try changing line 18 of MLWIC2/inst/shiny-apps/make_input/server.R from:
shinyFiles::shinyFileChoose(input, "input_file", roots=volumes, session=session, filetypes=c('txt', 'csv'))
to (added parentheses after volumes
):
shinyFiles::shinyFileChoose(input, "input_file", roots=volumes(), session=session, filetypes=c('txt', 'csv'))
and see if that works.
I will try that thanks.
On Mon, Feb 15, 2021, 4:02 PM Eric Newkirk [email protected] wrote:
Sounds like the same issue described here https://github.com/mikeyEcology/MLWIC2/issues/12.
Try changing line 18 of MLWIC2/inst/shiny-apps/make_input/server.R https://github.com/mikeyEcology/MLWIC2/blob/master/inst/shiny-apps/make_input/server.R from:
shinyFiles::shinyFileChoose(input, "input_file", roots=volumes, session=session, filetypes=c('txt', 'csv'))
to (added parentheses after volumes):
shinyFiles::shinyFileChoose(input, "input_file", roots=volumes(), session=session, filetypes=c('txt', 'csv'))
and see if that works.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mikeyEcology/MLWIC2/issues/20#issuecomment-779500614, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTW5MNWMTVZ532S5Z5DUU3S7GY2PANCNFSM4TQ6GSWA .