在HTML帮助中设置默认端口号

aL3*_*3xa 3 r

好吧,标题是不言自明的......是否可以为R的HTML帮助设置默认端口号?每次启动HTML帮助时,端口号都会发生变化.

Dir*_*tel 5

来自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.
Run Code Online (Sandbox Code Playgroud)

因此,看起来您可以尝试通过options("help.ports")适当设置来覆盖它.随机化似乎是一个特征.