Rev 24787 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{browseURL}\alias{browseURL}\title{Load URL into a WWW Browser}\description{Load a given URL into a WWW browser.}\usage{browseURL(url, browser = getOption("browser"))}\arguments{\item{url}{a non-empty character string giving the URL to be loaded.}\item{browser}{a non-empty character string giving the name of theprogram to be used as hypertext browser. It should be in the PATH,or a full path specified.#ifdef windowsUnder Windows \code{NULL} is also allowed (and is the default), andimplies that the file association mechanism will be used.#endif}}#ifdef unix\details{If \code{browser} supports remote control and \R knows how to performit, the URL is opened in any already running browser or a new one ifnecessary. This mechanism currently is available for browsers whichsupport the \code{"-remote openURL(...)"} interface (which includesNetscape 4.x, 6.2.x (but not 6.0/1), Opera 5/6 and Mozilla >= 0.9.5),Galeon, KDE konqueror (via kfmclient) and the GNOME interface toMozilla. Netscape 7.0 behaves slightly differently, and you will needto open it first. Note that the type of browser is determined fromits name, so this mechanism will only be used if the browser isinstalled under its canonical name.Because \code{"-remote"} will use any browser displaying on the Xserver (whatever machine it is running on), the remote controlmechanism is only used if \code{DISPLAY} points to the local host.This may not allow displaying more than one URL at a time from aremote host.}#endif#ifdef windows\examples{\dontrun{browseURL("http://www.r-project.org")browseURL("file://c|/R/rw1060/doc/html/index.html",browser="C:/Program Files/Netscape/Netscape/netscp.exe")}}#endif\keyword{file}