Hi, I was wondering if there's a way in R to open a web browser (such as Internet Explorer, or Firefox or whatever). I'm doing some analyses that have associated urls, and it would be nice to have the ability to directly open the relevant page from within R. I was looking at the help for 'url' and I can see I can probably access the information I need and display it in my own way, but can I somehow just open the given url with my web browser of choice? many thanks for any help, Jose -- Dr. Jose I. de las Heras Email: J.delasHeras at ed.ac.uk The Wellcome Trust Centre for Cell Biology Phone: +44 (0)131 6513374 Institute for Cell & Molecular Biology Fax: +44 (0)131 6507360 Swann Building, Mayfield Road University of Edinburgh Edinburgh EH9 3JR UK -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Use browseURL: browseURL('about:blank') On Fri, Aug 15, 2008 at 7:55 AM, <J.delasHeras at ed.ac.uk> wrote:> > Hi, > > I was wondering if there's a way in R to open a web browser (such as > Internet Explorer, or Firefox or whatever). > I'm doing some analyses that have associated urls, and it would be nice to > have the ability to directly open the relevant page from within R. > I was looking at the help for 'url' and I can see I can probably access the > information I need and display it in my own way, but can I somehow just open > the given url with my web browser of choice? > > many thanks for any help, > > Jose > > > -- > Dr. Jose I. de las Heras Email: J.delasHeras at ed.ac.uk > The Wellcome Trust Centre for Cell Biology Phone: +44 (0)131 6513374 > Institute for Cell & Molecular Biology Fax: +44 (0)131 6507360 > Swann Building, Mayfield Road > University of Edinburgh > Edinburgh EH9 3JR > UK > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Henrique Dallazuanna Curitiba-Paran?-Brasil 25? 25' 40" S 49? 16' 22" O
Hello - J.delasHeras at ed.ac.uk wrote:> > Hi, > > I was wondering if there's a way in R to open a web browser (such as > Internet Explorer, or Firefox or whatever). > I'm doing some analyses that have associated urls, and it would be nice > to have the ability to directly open the relevant page from within R.I don't know what you mean by "associated". If you just want to open a URL in a web browser from R, see ?browseURL, the help.start function uses this. Of course, help.search("browser") would have led you there. HTH, Erik
browseURL() On Fri, Aug 15, 2008 at 3:55 AM, <J.delasHeras@ed.ac.uk> wrote:> > Hi, > > I was wondering if there's a way in R to open a web browser (such as > Internet Explorer, or Firefox or whatever). > I'm doing some analyses that have associated urls, and it would be nice to > have the ability to directly open the relevant page from within R. > I was looking at the help for 'url' and I can see I can probably access the > information I need and display it in my own way, but can I somehow just open > the given url with my web browser of choice? > > many thanks for any help, > > Jose > > > -- > Dr. Jose I. de las Heras Email: J.delasHeras@ed.ac.uk > The Wellcome Trust Centre for Cell Biology Phone: +44 (0)131 6513374 > Institute for Cell & Molecular Biology Fax: +44 (0)131 6507360 > Swann Building, Mayfield Road > University of Edinburgh > Edinburgh EH9 3JR > UK > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Jose, I think shell.exec should do what you want: shell.exec("http://www.yahoo.com") -Christos> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of > J.delasHeras at ed.ac.uk > Sent: Friday, August 15, 2008 6:56 AM > To: r-help at r-project.org > Subject: [R] Opening a web browser from R? > > > Hi, > > I was wondering if there's a way in R to open a web browser > (such as Internet Explorer, or Firefox or whatever). > I'm doing some analyses that have associated urls, and it > would be nice to have the ability to directly open the > relevant page from within R. > I was looking at the help for 'url' and I can see I can > probably access the information I need and display it in my > own way, but can I somehow just open the given url with my > web browser of choice? > > many thanks for any help, > > Jose > > > -- > Dr. Jose I. de las Heras Email: > J.delasHeras at ed.ac.uk > The Wellcome Trust Centre for Cell Biology Phone: +44 > (0)131 6513374 > Institute for Cell & Molecular Biology Fax: +44 > (0)131 6507360 > Swann Building, Mayfield Road > University of Edinburgh > Edinburgh EH9 3JR > UK > > -- > The University of Edinburgh is a charitable body, registered > in Scotland, with registration number SC005336. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >
?browseURL J.delasHeras at ed.ac.uk wrote:> > Hi, > > I was wondering if there's a way in R to open a web browser (such as > Internet Explorer, or Firefox or whatever). > I'm doing some analyses that have associated urls, and it would be nice > to have the ability to directly open the relevant page from within R. > I was looking at the help for 'url' and I can see I can probably access > the information I need and display it in my own way, but can I somehow > just open the given url with my web browser of choice? > > many thanks for any help, > > Jose > >-- James W. MacDonald, M.S. Biostatistician Hildebrandt Lab 8220D MSRB III 1150 W. Medical Center Drive Ann Arbor MI 48109-0646 734-936-8662
If this is Windows, see shell.exec. On any platform, see browseURL. Does help.search("url") not get you there? On Fri, 15 Aug 2008, J.delasHeras at ed.ac.uk wrote:> > Hi, > > I was wondering if there's a way in R to open a web browser (such as Internet > Explorer, or Firefox or whatever). > I'm doing some analyses that have associated urls, and it would be nice to > have the ability to directly open the relevant page from within R. > I was looking at the help for 'url' and I can see I can probably access the > information I need and display it in my own way, but can I somehow just open > the given url with my web browser of choice? > > many thanks for any help, > > Jose > > > -- > Dr. Jose I. de las Heras Email: J.delasHeras at ed.ac.uk > The Wellcome Trust Centre for Cell Biology Phone: +44 (0)131 6513374 > Institute for Cell & Molecular Biology Fax: +44 (0)131 6507360 > Swann Building, Mayfield Road > University of Edinburgh > Edinburgh EH9 3JR > UK > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595