Re: [R] Opening help pages in new tab of existing Mozilla Firebird

About this list Date view Thread view Subject view Author view Attachment view

From: Marc Schwartz (MSchwartz@medanalytics.com)
Date: Thu 27 May 2004 - 02:06:59 EST


Message-id: <1085587619.6915.64.camel@localhost.localdomain>

On Wed, 2004-05-26 at 10:32, Kevin Wright wrote:
> Subject pretty much says it all. I currently have options()$browser
> set to open help pages in Mozilla Firebird, but it starts a new window
> each time and I would like a new 'tab' in an existing window.
>
> Sorry if this is obvious, but I can't find anything.
>
> Kevin Wright

You do not indicate which OS you are running, but under Linux, you can
use a script such as the following. It will check the current process
list to see if an instance of Firefox is already present. If so, it will
open a new tab. Otherwise, it opens a new window.

#!/bin/sh

# if 'firefox-bin' in current ps listing,
if ps -e|grep firefox-bin >/dev/null 2>&1; then
  firefox -remote "openURL(${1}, new-tab)" && exit 0
else
#open new instance
  firefox $1 && exit 0
fi

Copy the above into a script file and set it to be executable (chmod +x
ScriptFileName). Then set options()$browser to use the script file.

Note also that the recent version of the Mozilla standalone browser is
called Firefox, in recognition of the existence of the Firebird
(formerly Interbase) SQL database project.

HTH,

Marc Schwartz

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST