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

ExtendedTask - Unable to return multiple different data.frames and plots from the same function/task #4158

Open
fungalgermination opened this issue Nov 28, 2024 · 1 comment

Comments

@fungalgermination
Copy link

Hello,

I am trying to use ExtendedTask to enable multi-person use of my R Shiny App.

Because of the multiple outputs involved in this app, which all come from the same analysis, I've been attempting to get multiple returns from the same function. I don't seem to be able to find a way to do this.
To circumvent this, I've attempted to run multiple ExtendedTasks to get each of the outputs (6 of them). This works great when I run the App on my laptop, but it slows down from 5 seconds to 125 seconds once it's been loaded onto our server.

Do you have any advice on how I can pull multiple data.frames and plots from a single extendedtask or make them global variables in the parent environment without having multiple asynchronous tasks running at once? Unfortunately the data frames are very different from each other and therefore combining them into one result to later split them has not been feasible.

Thank you for your help.

Best wishes,

Dr. O

@ismirsehregal
Copy link
Contributor

I'd suggest to put the data.frames etc. in a list(). Please check my related answer here.

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

2 participants