Skip to content

display URLs in browsers

8 messages · Brian Ripley, Douglas Bates, Martin Maechler +2 more

#
Maybe someone knows the answer right away, but I am afraid that all of
us are on Netscape ...

With Netscape, we can do
	netscape -remote -openURL($url)

Does anyone know how to get browsers other than Netscape to display
URLs?

I am specifically interested in
	gnome-help-browser
	mozilla

but would welcome any pointers.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Mon, 16 Apr 2001, Kurt Hornik wrote:

            
You don't expect help on gnome, do you?  gnome-help-browser -help says
nothing useful.

I downloaded Ximian GNOME (rpms via their downloader) a week or so ago,
but can't start it as gnome-session is a binary linked against slightly
different X libraries ....
I don't know about mozilla (I think Doug uses it), but it looks very
like Netscape 6.01, and that does *seem* to use the Netscape 4.* syntax,
alkthough the --help does not mention it.

KDE has a browser as I recall.
#
Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:
I tried mozilla for a while but eventually shifted back to netscape.
Tony Rossini has more experience with mozilla than I do.

I did try to make the link from R to mozilla.  As I recall I didn't
get it working because I couldn't work out how to pass the information
for the initial page to open.  Since I don't tend to use help.start()
it wasn't a big priority for me.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
DougB> Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:
>> On Mon, 16 Apr 2001, Kurt Hornik wrote:
>> > Does anyone know how to get browsers other than Netscape to
    >> display > URLs?

    >> > mozilla
    >> 
    >> I don't know about mozilla (I think Doug uses it), but it looks very
    >> like Netscape 6.01, and that does *seem* to use the Netscape 4.*
    >> syntax, alkthough the --help does not mention it.

    DougB> I tried mozilla for a while but eventually shifted back to
    DougB> netscape.  Tony Rossini has more experience with mozilla than I
    DougB> do.

    DougB> I did try to make the link from R to mozilla.  As I recall I
    DougB> didn't get it working because I couldn't work out how to pass
    DougB> the information for the initial page to open.  Since I don't
    DougB> tend to use help.start() it wasn't a big priority for me.

Since I am at home .. :
With the newest (as 2 days ago) mozilla "M18-3" for stable Debian GNU/Linux 
I get for "mozilla -help"

Usage: /usr/lib/mozilla/mozilla-bin [ options ... ] [URL]
       where options include:

        -height <value>         Set height of startup window to <value>.
        -h or -help             Print this message.
        -installer              Start with 4.x migration window.
        -width <value>          Set width of startup window to <value>.
        -v or -version          Print /usr/lib/mozilla/mozilla-bin version.
        -CreateProfile <profile>                Create and start with
        -<profile>.
        -P <profile>            Start with <profile>.
        -ProfileWizard          Start with profile wizard.
        -ProfileManager         Start with profile manager.
        -SelectProfile          Start with profile selection dialog.
        -splash         Enable splash screen.
        -compose <url>          Start with messenger compose.
        -edit <url>             Start with editor.
        -terminal               Start with a command line terminal
        -mail           Start with mail.
        -chrome <url>           Start with browser.
        -addressbook            Start with the addressbook.
        -chat           Start with an IRC chat client
        -jsconsole              Start with Javascript Console
        -news           Start with news.

which suggests that

      mozilla -chrome http://www.R-project.org/

does what you want. But uuh, yes, it starts a browser with the R page,
but in the usual mode: I get one "full screen" window, but nothing from the
usual tool buttons, URL entry, ... things of netscape/mozilla.

Also the above always starts a  new mozilla, i.e. does not do what we really
want: open an URL in any already running browser.

Martin

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
MM> which suggests that

    MM>       mozilla -chrome http://www.R-project.org/

Once mozilla is working, under gnome, I get this:

        gnome-moz-remote --newwin URL 

to bring up a new window.  Recently, I've nearly (not entirely)
converted to KDE's konqueror and

        konqueror URL

works.  I still am not fond of KDE's overall UI, but the tools they've
developed suit my needs.

(needed SSL for various grant associated reasons last week, and:
1. setting up SSL in Mozilla (under Debian) is a PITA, 
2. "modern" WWW browsers are easier to use than netscape, for
    navigating complex non-servlet sites).

I'm still running in a GNOME environment, though.

best,
-tony
#
MM> which suggests that

MM> mozilla -chrome http://www.R-project.org/
Thanks for the feedback.  Actually,
	http://www.mozilla.org/unix/remote.html
claims that one can do

	mozilla -remote "openurl(http://www.mozilla.org)"

but this does not work for me (version M18-3).

Btw, the search engine does not work either, and e.g. the FAQ parts do
not display at all.
That's all?  Does that start a new version of konqueror if one is
already up and running?
Hmm ...

For gnome-help-browser, one can apparently do

	gnome-help-browser URL

but I have yet to figure out how to use an existing help-browser ...

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
MM> which suggests that

    MM> mozilla -chrome http://www.R-project.org/

    >> Once mozilla is working, under gnome, I get this:

    >> gnome-moz-remote --newwin URL

    >> to bring up a new window.

    KH> Thanks for the feedback.  Actually,
    KH> http://www.mozilla.org/unix/remote.html claims that one can do

    KH> 	mozilla -remote "openurl(http://www.mozilla.org)"

    KH> but this does not work for me (version M18-3).

Me neither.

    >> Recently, I've nearly (not entirely) converted to KDE's
    >> konqueror and

    >> konqueror URL

    >> works.  I still am not fond of KDE's overall UI, but the tools
    >> they've developed suit my needs.

    KH> That's all?  Does that start a new version of konqueror if one
    KH> is already up and running?

I don't know.  I'll check tonight.

    KH> For gnome-help-browser, one can apparently do

    KH> 	gnome-help-browser URL

    KH> but I have yet to figure out how to use an existing
    KH> help-browser ...

But you probably don't want to use it for much; R help is fine, but
much more wouldn't be.

best,
-tony
#
MM> which suggests that

MM> mozilla -chrome http://www.R-project.org/
KH> Thanks for the feedback.  Actually,
KH> http://www.mozilla.org/unix/remote.html claims that one can do

KH> mozilla -remote "openurl(http://www.mozilla.org)"

KH> but this does not work for me (version M18-3).
KH> That's all?  Does that start a new version of konqueror if one
KH> is already up and running?
Great, thanks.

KH> For gnome-help-browser, one can apparently do

KH> gnome-help-browser URL

KH> but I have yet to figure out how to use an existing
KH> help-browser ...
Actually, I am mostly trying to get rid of the netscape-specific code in
help.start().  I.e., start a little private beast
	diplayURLinBrowser(url, browser)
which eventually could be made more useful ...

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._