Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Select directory under Make input files for MLWIC2 #20

Open
grse7250 opened this issue Nov 10, 2020 · 3 comments
Open

Unable to Select directory under Make input files for MLWIC2 #20

grse7250 opened this issue Nov 10, 2020 · 3 comments

Comments

@grse7250
Copy link

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.

@grse7250
Copy link
Author

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:
2: shiny::runApp
1: MLWIC2::runShiny

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.

@ericnewkirk
Copy link

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.

@grse7250
Copy link
Author

grse7250 commented Feb 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants