I have series of R scripts and I want to run them when some reqeusts are received. I want to speedup the running time beacuse most of them are plot script and they load packages are time consuming. I read the links mentioned below and have some potential solutions, but none of them are meet my requirement.
- The littler package, which is an alternative to native Rscript. This package claimed that it can run r scripts with faster speed. but I am not sure it is compatibility for third-party packages.
- The Plumber package, this is almost the best solution that I know. Plumber's solution is very simple and effcient but it can only run one task in a time. In other words, it does not consider the concurrent requests.
So my question is:
- Is there a solution that host R sessions link plumber and have the ability to handle concurrency issue?
- If not, is there a solution that reduce the time of load packages in a single R script?
Other questions that I have read: