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

Problems to setup environment #12

Open
teuzindahuz opened this issue Jun 9, 2020 · 6 comments
Open

Problems to setup environment #12

teuzindahuz opened this issue Jun 9, 2020 · 6 comments

Comments

@teuzindahuz
Copy link

When I run the function MLWIC2::runShiny('setup'), I cannot select the folder where Python is located.

@mikeyEcology
Copy link
Owner

Can you select it on the top half of the screen?

@teuzindahuz
Copy link
Author

No, the page become dark and freezes. However, it seems that with MLWIC::setup() is working.

@ericnewkirk
Copy link

Hi @mikeyEcology,

I ran into this same issue. Line 7 in setup_shiny.R should read:

shinyFiles::shinyDirChoose(input, 'python_loc', roots=volumes(), session=session)

instead of

shinyFiles::shinyDirChoose(input, 'python_loc', roots=volumes, session=session)

shinyFiles::getVolumes returns a function which can then be called to return the vector of available drives, instead of returning the vector directly. From the help:

It returns a function that returns a named vector of available volumes on the system. This construction makes it dynamic so that a shinyFiles instance reflects new volumes as they get added (e.g. usb drives).

Hope that helps,
Eric

@mikeyEcology
Copy link
Owner

Thank you @ericnewkirk!
This change must have occurred as part of updating to R4.0? It worked fine before, but I made these updates to the shiny apps. Thanks for your help.

@ericnewkirk
Copy link

No problem! I think they just changed the shinyFiles package to make it scan for new drives every time you open a dialog, rather than just once when you open the first one. Hopefully that change doesn't break anything for anyone with the older version of shinyFiles.

@grse7250
Copy link

grse7250 commented Nov 6, 2020

This is a small point of clarification to the instructions for what it is worth. Under Step 2 it would be useful to explicitly say "In R Setup your environment for using MLWIC2 using the function setup."

I only say this because it had been awhile since I had used R and it was not clear that step 2 is something you are supposed to do in R. After pondering and trying a few things for 5 minutes I figured it out.

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

4 participants