Setting the default port number in HTML help

Well, the title is understandable ... Is it possible to set the default port number for R HTML reference? Every time I run HTML help, the port number changes.

+3
source share
1 answer

From help(startDynamicHelp):

More details:

 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.

So it looks like you can try redefining it with an options("help.ports")appropriately configured one. Randomization seems to be a feature.

+5
source

Source: https://habr.com/ru/post/1767235/


All Articles