【发布时间】:2010-09-29 18:54:16
【问题描述】:
嗯,标题是不言自明的... 是否可以为 R 的 HTML 帮助设置默认端口号?每次我启动 HTML 帮助时,端口号都会更改。
【问题讨论】:
标签: r
嗯,标题是不言自明的... 是否可以为 R 的 HTML 帮助设置默认端口号?每次我启动 HTML 帮助时,端口号都会更改。
【问题讨论】:
标签: r
来自help(startDynamicHelp):
详情:
This function starts the internal HTTP server, which runs on the loopback interface (‘127.0.0.1’). If ‘options("help.ports")’ is set to a vector of integer values, ‘startDynamicHelp’ will try those ports in order; otherwise, it tries up to 10 random ports to find one not in use. It can be disabled by setting the environment variable ‘R_DISABLE_HTTPD’ to a non-empty value.
所以看起来您可以尝试通过适当设置的options("help.ports") 覆盖它。随机化似乎是一个特征。
【讨论】: