0

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.

  1. 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.
  2. 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:

  1. Is there a solution that host R sessions link plumber and have the ability to handle concurrency issue?
  2. If not, is there a solution that reduce the time of load packages in a single R script?

Other questions that I have read:

  1. is it possible to run R as a daemon
  2. Speed up the load of an R package?
  3. How to load packages in R automatically?

0 Answers0