R-based items are processed differently than Displayr's built-in features. R-based items (you will see an R CODE box on the Properties tab) are processed on a remote R server, and both the data and R code need to be sent to the R server for processing, for more detail see how our R servers work here. You can review the timings of the different parts of processing an R Calculation (you can copy R variable and R data set code into a Calculation for review) to identify bottlenecks. To see the timings for a Calculation:
- Select it
- Check Properties > OUTPUT > Show raw R output.
The calculation below takes a total of 0.7 seconds, but only 0.23 of the seconds were spent performing the actual calculations, with the rest of the time spent transferring data and setting up things (overhead) on the R server. We can also see that 10.4KB of data was sent to the R server.
Next
Minimize the Size and Distance of Data Being Moved