From murdoch at stats.uwo.ca  Fri Oct 16 16:54:34 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 16 Oct 2009 10:54:34 -0400
Subject: [Rd] Fixing html help port in 2.10
In-Reply-To: <25926528.post@talk.nabble.com>
References: <25926528.post@talk.nabble.com>
Message-ID: <4AD8892A.903@stats.uwo.ca>

On 10/16/2009 10:39 AM, Dieter Menne wrote:
> I noted that the new html-help in 2.10 under Windows uses a random port on my
> computer.
> This cause a problem, because when I create a link such as:
> 
> http://127.0.0.1:28027/library/stats/html/addmargins.html
> 
> this is for one-time use only. Is it possible to fix the port?

Not currently.  If you look in tools:::startDynamicHelp you can see how 
it is set up; you could duplicate that setup as a temporary workaround. 
  You might be better off to build R with static help instead.  What is 
the application where you want to be able to give out links?  Perhaps we 
could consult an environment variable or option() to choose the port 
instead of leaving it completely random.

The reason it is random is the worry that multiple R instances on the 
same machine might collide.  All processes on the machine see the same 
ports.

Duncan Murdoch



[Rd] Fixing html help port in 2.10
Duncan Murdoch