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

Shiny-based example #19

Open
benkates opened this issue Sep 28, 2020 · 3 comments
Open

Shiny-based example #19

benkates opened this issue Sep 28, 2020 · 3 comments
Labels

Comments

@benkates
Copy link

Hi there, I'm interested in applying this to Shiny apps - is that possible? Or would you recommend just using profvis?

@HenrikBengtsson
Copy link
Owner

profmem() returns raw results as a data.frame. There are no visualization tools and so on, if that's what you're asking for.

@benkates
Copy link
Author

benkates commented Sep 28, 2020

I'm looking for an example of running profmem() on the server() function for a Shiny app and if that would even work. Doesn't matter if the result is a visual.

@HenrikBengtsson
Copy link
Owner

stats <- profmem::profmem({ expr }) will benchmark whatever R expression expr you pass to it. I don't know how to get the Shiny server() code to do do. Maybe this is a question for the Shiny folks? I'd expect the solution to be very similar to how it's done for profvis::profvis().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants