-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bootstrap version 3 compatibility, use shinybootstrap2 #4
Comments
DetailsThis was identified as an issue when there was an error running this with the current version of shiny (0.13). This site was built before shiny version 0.11, which introduced bootstrap 3, causing breaking changes if you hand-coded the HTML. Basically, it comes down to the fact that the classes have changed in bootstrap 3 and so, what used to be slider inputs in version 2 are now not recognized. This causes the input to return NULL and break. The shinybootstrap2 package promises to allow you to run bootstrap2 with the current version of shiny by wrapping it in the function I see a few solutions from this:
Of those three options, only number 3 is working straight out of the box. The drawback is that we are frozen with this framework, and it requires the user to explicitly utilize an out-of-date version of an R package which has a higher chance of failing as R continues to improve. The obvious drawbacks to 1 and 2 is that either of them would take more time and effort than we have. |
All scripts and links necessary to work have been updated to work with bootstrap 3 in the 4cafbc5 commit. @zkamvar, can you test the New_bootstrap pages and scripts (test only SSR-ID and Binary-ID, as MLST-ID won't work in your local machine due to some dependency issues)?. Then we can update shiny in the server, update Phytopthora-ID and call it a day. |
It works for SSR-ID and that's what's important to me. |
How difficult was it to update the scripts to support bootstrap3? I would need to update GallID on the server and I don’t wan’t to lose anything hardcoded by switching to the new version. On March 14, 2016 at 4:25:13 PM, Javier F. Tabima ([email protected]) wrote: All scripts and links necessary to work have been updated to work with bootstrap 3 in the 4cafbc5 commit. @zkamvar, can you test the New_bootstrap pages and scripts (test only SSR-ID and Binary-ID, as MLST-ID won't work in your local machine due to some dependency issues). Then we can update shiny in the server, update Phytopthora-ID and call it a day. — |
@alexweisberg, you could try creating a branch of GallID and then merging the new version into that branch to see what changed. If you're lucky, you will just have to rename some variables. If not, delete that branch and manually update. |
fantastamazing. I'll sit with @knausb during the week and update shiny. @alexweisberg: Not very difficult. Its more tedious due to the fact we have to update the script + style links... pretty much you have to remove all previous styles + scripts (except the ones that you created or are executed by the page itself) with this new locations of the bootstrap + shiny files:
I'd follow what @zkamvar is recommending and I would create a new branch to test and update them. |
Also, if you are going to change the styles of the backbone webpages (not the shiny pages) you have to manually update the |
As Shiny officially changed to bootstrap version 3 in version 0.11 https://github.com/rstudio/shiny/blob/master/README.md#bootstrap-3-migration. To address compatibility with sites that are structured off of bootstrap version 2, they suggest to use the package shinybootstrap2: https://github.com/rstudio/shinybootstrap2
The text was updated successfully, but these errors were encountered: