【问题标题】:Set default port number in HTML help在 HTML 帮助中设置默认端口号
【发布时间】:2010-09-29 18:54:16
【问题描述】:

嗯,标题是不言自明的... 是否可以为 R 的 HTML 帮助设置默认端口号?每次我启动 HTML 帮助时,端口号都会更改。

【问题讨论】:

    标签: r


    【解决方案1】:

    来自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") 覆盖它。随机化似乎是一个特征。

    【讨论】:

    • 崇高的答案!非常感谢!
    猜你喜欢
    • 2010-12-29
    • 2015-04-08
    • 2015-05-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-16
    • 1970-01-01
    • 2012-09-28
    相关资源
    最近更新 更多