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 with dependency 'shinyQuiz' #51

Open
dadlanimonish opened this issue Jun 5, 2024 · 9 comments
Open

Error with dependency 'shinyQuiz' #51

dadlanimonish opened this issue Jun 5, 2024 · 9 comments
Assignees

Comments

@dadlanimonish
Copy link

I am having issues with trying to install the development version of thinkCausal locally using a Windows computer as well as Windows Subsystem for Linux. The issue seems to be with the shinyQuiz package. This is the error I keep on receiving.

ERROR: dependency 'shinyQuiz' is not available for package 'thinkCausal'

Any help would be appreciated. Thanks!

@joemarlo
Copy link
Member

joemarlo commented Jun 5, 2024

This has to do with thinkCausal using the previous version of shinyquiz before it went to CRAN.

@gperrett I know you have a local version of thinkCausal working. How do you handle this? Do you just install shinyquiz from a previous commit using remotes?

We should move the shinyquiz dependency over to the CRAN version.

@gperrett
Copy link
Collaborator

gperrett commented Jun 5, 2024

Yes, I can push later today. Update should be up by tonight.

@dadlanimonish
Copy link
Author

dadlanimonish commented Jun 5, 2024

Thanks! Much appreciated!

@joemarlo
Copy link
Member

@dadlanimonish I believe @gperrett's latest commit on the dev branch addresses this issue. Until this gets merged into master, you should be able to install from the dev branch via:

remotes::install_github('priism-center/thinkCausal_dev', subdir = 'thinkCausal', ref = 'dev')

@dadlanimonish
Copy link
Author

dadlanimonish commented Jun 10, 2024

@joemarlo Thanks. I was able to install it but I keep getting this error when I run thinkCausal::run_app()

Listening on http://127.0.0.1:6868
Warning: Error in [[: subscript out of bounds
  71: <Anonymous>
  70: bs4Dash::menuItem
  60: ui
   3: runApp
   2: print.shiny.appobj
   1: <Anonymous>

Thanks for your help!

@joemarlo
Copy link
Member

Hmm, I think something happened within the bs4Dash package. You can resolve it by installing a previous version:

devtools::install_version("bs4Dash", "2.1.0")

Then restart your R session and run thinkCausal::run_app()

Also, keep in mind that this is the dev branch so things may not be entirely production ready.

@dadlanimonish
Copy link
Author

dadlanimonish commented Jun 10, 2024

That allowed the app to start up but is leading to a session disconnect error. I can wait until things are production ready. Thanks for your help!

Capture

@dadlanimonish
Copy link
Author

Any update on this issue?

Thanks!

@gperrett
Copy link
Collaborator

It has been resolved, uninstall bs4Dash by running remove.packages('bs4Dash').

Then re-start the installation by running:

remotes::install_github('priism-center/thinkCausal_dev', subdir = 'thinkCausal')

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