How to start RServe with library preload

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.

0
source share
3 answers

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.

+4
source

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')
+2

, , RConnection , RConnection .

, RConnection.

0

Source: https://habr.com/ru/post/1598055/


All Articles