Windows上的Rserve Config文件在哪里? [英] Where is the Rserve Config file located on Windows?

查看:117
本文介绍了Windows上的Rserve Config文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有R-3.1.0的Windows 7 x64计算机.我通过Rstudio安装了Rserve软件包.

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

使用Rstudio中的以下代码成功启动Rserve:

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

library(Rserve)
Rserve()

我得到以下输出:

Starting Rserve...
"C:\R\R-31~1.0\library\Rserve\libs\x64\Rserve.exe" 

我的问题是我找不到配置文件.显然它不能是"/etc/Rserv.conf".

My problem is that I couldn't locate the configuration file. Apparently it can't be "/etc/Rserv.conf".

我确实遇到了一个网页,说配置文件是工作目录中的Rserv.cfg(除非在编译时进行了更改).但是哪个工作目录?我已经检查了当前R项目的工作目录以及Rserve库目录,但是它不存在...有人可以帮我这个忙吗?谢谢你.

I did come across a webpage saying that the config file is Rserv.cfg in the working directory (unless changed at compile-time). But which working directory? I have checked the working directory of the current R project as well as the Rserve library directory, but it was not there...Could someone help me with this please? Thank you.

推荐答案

Rserve不会自动提供配置文件,您必须创建一个.这样做的最佳步骤:

Rserve does not automatically come with a config file, you must make one. Best steps for doing so:

  1. 导航到刚刚安装Rserve.exe的文件(C:\ R \ R-31〜1.0 \ library \ Rserve \ libs \ x64 \ R,根据您在此处复制的消息)
  2. 在此处找到Rserve.exe,Reserve_d.exe和Rserve.dll.复制这些文件.
  3. 导航到计算机上R.dll的位置.这可能是C:\ Program Files \ R \ R-3.1.3 \ bin \ x64,但可能会有所不同,具体取决于将R安装到的位置.
  4. 将上述3个文件复制到该位置.
  5. 在此处创建一个名为"Rserv.cfg"的文本文件,其中包含您要查找的参数,例如端口6312或library(mvoutlier).是的,我知道这与文档不同,但是如果您启动Rserve_d.exe,您将看到这是它正在寻找的文件.我还没有将其命名为其他名称.

这篇关于Windows上的Rserve Config文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆