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

Error when trying to select files #8

Closed
AbbyKimball opened this issue Apr 9, 2019 · 11 comments
Closed

Error when trying to select files #8

AbbyKimball opened this issue Apr 9, 2019 · 11 comments

Comments

@AbbyKimball
Copy link

Hello! I'm having an issue with the shinyapp, when I try to import my files it crashes and I am given this error:

Listening on http://127.0.0.1:4644
Warning: Error in : 'choose.dir' is not an exported object from 'namespace:utils'
  79: stop
  78: getExportedValue
  77: ::
  74: observeEventHandler
   3: shiny::runApp
   2: shiny::runGadget
   1: phenoptrReports:::addin_10_merge

Thanks!

@AB-Kent
Copy link
Contributor

AB-Kent commented Apr 9, 2019

I see that choose.dir() is Windows-specific. Are you running on Windows?

@AbbyKimball
Copy link
Author

Nope, I am doing this on a mac. Please note that I didn't run the command 'choose.dir' this is just the error I get after the shinyapp crashes. For example, I select "Addins > Merge inForm Data" and then the pop out window appears, I select "browse input" to grab my files of interest and then the popout crashes the error above appears.

@AB-Kent
Copy link
Contributor

AB-Kent commented Apr 9, 2019

choose.dir() is used by the addin. I didn't realize it was Windows-specific. I need to replace both choose.dir() and choose.files() :-/

@AbbyKimball
Copy link
Author

Let me know when you think it will be working! I'm almost done putting together a manuscript and I'd love to add something about phenoptrReports! Thanks!

AB-Kent added a commit that referenced this issue Apr 9, 2019
Remove obsolete use of `purrr::possibly`.
@AB-Kent
Copy link
Contributor

AB-Kent commented Apr 9, 2019

Should be fixed now in the development build. To use it, you will also need the dev build of phenoptr. Install both with

devtools::install_github('akoyabio/phenoptr@9000')
devtools::install_github('akoyabio/phenoptrReports@9000')

Let me know if it works, I don't have a Mac to test on.

@AbbyKimball
Copy link
Author

Fantastic! So now the Addin "merge cell seg files" works perfectly well, but I am still getting the same error when I try the other Addin options (ex: consolidate and summarize).

Whatever you did worked it just seems like it has to be applied for all functions.

Thanks!

@AB-Kent
Copy link
Contributor

AB-Kent commented Apr 9, 2019

Can you try restarting RStudio? I did change the other addins. If that doesn't work, please post the complete error message. Thanks!

@AbbyKimball
Copy link
Author

I just tried restarting and I'm still having the issue with the "consolidate and summarize" option.

Here is the error :)

Listening on http://127.0.0.1:3113 Warning: Error in : 'Filters' is not an exported object from 'namespace:utils' 79: stop 78: getExportedValue 77: :: 74: observeEventHandler 3: shiny::runApp 2: shiny::runGadget 1: phenoptrReports:::addin_20_consolidate

Thank you!

@AB-Kent
Copy link
Contributor

AB-Kent commented Apr 9, 2019

Please re-install phenoptrReports and try again.
devtools::install_github('akoyabio/phenoptrReports@9000')

@AB-Kent
Copy link
Contributor

AB-Kent commented Apr 11, 2019

@AbbyKimball Is this fixed for you now?

AB-Kent pushed a commit that referenced this issue Apr 12, 2019
Prefer `rstudioapi` choosers to `tcltk`; `rstudioapi` uses platform-native choosers which are much nicer than the `tcltk` ones. `rstudioapi::selectFile` does not support multiple selection so in that one case use `tcltk`.

Fix a bug where `NA` would be saved as `output_path` and `default_dir` if the user cancelled.
@AB-Kent AB-Kent closed this as completed Apr 12, 2019
@jpo-costa
Copy link

I have the same error and I did install devtools::install_github('akoyabio/phenoptrReports@9000')

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

3 participants