[Rd] Fixing html help port in 2.10
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? Dieter Menne -- View this message in context: http://www.nabble.com/Fixing-html-help-port-in-2.10-tp25926528p25926528.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Fixing html help port in 2.10
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 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Fixing html help port in 2.10
Duncan Murdoch-2 wrote: 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 ... Too bad. When I saw the port, I immediately changed all my static links to use the ports, because it looked like a good idea to have addresses that do not change when I install into a new directory. Back to the drawing board. Maybe I should use R_HOME instead. Dieter -- View this message in context: http://www.nabble.com/Fixing-html-help-port-in-2.10-tp25926528p25926875.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Fixing html help port in 2.10
Dieter, On Oct 16, 2009, at 11:01 , Dieter Menne wrote: Duncan Murdoch-2 wrote: 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 ... Too bad. When I saw the port, I immediately changed all my static links to use the ports, because it looked like a good idea to have addresses that do not change when I install into a new directory. Back to the drawing board. Maybe I should use R_HOME instead. You still didn't answer the crucial question -- what are you trying to do? If whatever you're building has something to do with R then this is no issue since you get the port from R. And if you're working on something unrelated to R then nothing prevents you from using the same approach that old R versions used -- create a static file that points to the correct URL for the current session (like help links in 2.9 and earlier). But again, unless we know what you're up to we can't help you with solutions... Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Fixing html help port in 2.10
You still didn't answer the crucial question -- what are you trying to do? Creating some frequently used links in a browser. Static works, but it is a nuisance that I have to change is every time I get a new version. I now created a virtual link to it (works in Windows too). Dieter -- View this message in context: http://www.nabble.com/Fixing-html-help-port-in-2.10-tp25926528p25927404.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel