I need to load the library every time I create a new RConnection. Can I preload it when I start RServe?
Downloading it every time a new RConnection makes it slower.
Yes, you can use the configuration options evalor sourceor --RS-source <file>. Everything that you download in this way is preloaded on the server before it starts listening for connections.
eval
source
--RS-source <file>
It may not work because you are missing quotation marks for the library name. Another way to do this is to place the eval line inside /etc/Rserve.conf as follows:
eval library('lib1'); library('lib2'); library('lib3')
, , RConnection , RConnection .
, RConnection.
Source: https://habr.com/ru/post/1598055/More articles:Does RDB radish run bgsave or save? - redisFind an almost circular band of bright pixels in this image - image-processingBluetoothGattCallback - onConnectionStateChange returns status22 - androidRServe file sharing library code - rSetting a default route for an MVC site in IIS 8 - asp.net-mvcAngular - ng-disabled active / inactive - angularjsWhat is a good "template" synthesis of a Joss script? - yosysWebSocket support closes cause from Dart WebSocket server - dartmd-list with more than one md secondary action - angularjsCannot set default route for MVC project - c #All Articles