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

Move shiny::onStop in vignette #98

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Conversation

jcheng5
Copy link
Contributor

@jcheng5 jcheng5 commented Mar 14, 2024

The way this was written, the daemons would be shut down at the end of a session, not when the app stops.

The way this was written, the daemons would be shut down at
the end of a _session_, not when the app stops.

Signed-off-by: Joe Cheng <joe@posit.co>
@shikokuchuo shikokuchuo self-requested a review March 14, 2024 21:07
Copy link
Owner

@shikokuchuo shikokuchuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Joe, this is indeed the case.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.81%. Comparing base (e86299f) to head (8859624).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #98   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files           8        8           
  Lines         549      549           
=======================================
  Hits          548      548           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shikokuchuo shikokuchuo merged commit 36b5417 into shikokuchuo:main Mar 14, 2024
7 checks passed
@shikokuchuo shikokuchuo deleted the patch-1 branch April 8, 2024 14:09
@shikokuchuo
Copy link
Owner

FYI a method for with() has now been added, which allows you to do something like:

app <- shinyApp(ui = ui, server = server)

with(daemons(5), runApp(app))

This naturally removes the need to specify when to terminate daemons.

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.

None yet

3 participants