Where is the Rserve Config file located on Windows?

后端 未结 4 1676
小鲜肉
小鲜肉 2021-02-11 02:37

I\'m using a Windows 7 x64 machine with R-3.1.0. I installed the Rserve package through Rstudio.

The start of Rserve is successful with the following code in Rstudio:

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-11 03:17

    After looking at the Rserve source code and making some test I found that on Windows platform Rserve try to load the configuration file from the current working directory. Also pay attention because on Windows the file name is RServ.cfg and not Rserv.conf as documented.

    The current working directory depends of the process, for example using RStudio by default it is your Documents and Settings folder:

    C:\Users\[username]\Documents
    

    but can be changed in the "Global Options" of the IDE

    So you can create an "RServ.cfg" text file in that directory with your needed options and starting RServe in the usual way in RStudio

    Rserve()

    will load your configuration.

提交回复
热议问题