Skip to content

Comments

126 add support for shinylive#136

Open
fifteenforty wants to merge 6 commits intomasterfrom
126-add-support-for-shinylive
Open

126 add support for shinylive#136
fifteenforty wants to merge 6 commits intomasterfrom
126-add-support-for-shinylive

Conversation

@fifteenforty
Copy link
Collaborator

@fifteenforty fifteenforty commented Jan 20, 2025

This pull request includes several changes to the stanpumpR with the purpose of making stanpumpR compatible with webR and shinylive.

Removal of unused packages and functions:

  • Removed unused packages such as shinyBS, egg, grid, mailR, randomcoloR, and RColorBrewer from the Imports: section.

Removed sendError (email function)

  • R/sendError.R: Removed the sendError function which was used to send error messages via email.
  • server.R: Removed the call to sendError in the server function.

Addition of new download buttons

  • R/sendSlide.R: Added functions generatePPTX, generateXLSX, and generatePNG to generate PowerPoint, Excel, and PNG reports respectively.
  • server.R: Added downloadHandler for generating and downloading PPTX, XLSX, and PNG reports.
  • global.R: Added a workaround for the downloadButton in Chromium-based browsers.

Compatibility improvement

  • ui.R: Removed shinybs::bsTooltip elements as they were incompatible with shinylive
  • Future versions should use bslib::tooltip() but this requires Bootstrap 5, so other dependencies will need to be updated first

@fifteenforty fifteenforty linked an issue Jan 20, 2025 that may be closed by this pull request
@fifteenforty fifteenforty marked this pull request as ready for review January 20, 2025 04:18
@fifteenforty
Copy link
Collaborator Author

I haven't removed sendSlide() yet. It won't work in the shinylive environment.

@StevenLShafer
Copy link
Owner

StevenLShafer commented Jan 20, 2025 via email

@fifteenforty
Copy link
Collaborator Author

No problem. I'll add a conditional so the email field only appears when credentials are set.

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

Successfully merging this pull request may close these issues.

Add support for shinylive

2 participants