Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R: Launch web browser

Tags:

r

Is there a way to launch internet explorer with a given URL in R? I want to scrape web pages in order to extract certain values, but I want to open the web pages themselves just so I can step through each one to make sure the data seems right.

like image 274
JoshDG Avatar asked Dec 12 '11 17:12

JoshDG


2 Answers

Here you go:

browseURL("https://www.r-project.org")

If you need it, browseURL() also takes an argument browser= that lets you specify the name or path of the program to be used as a browser.

like image 72
Josh O'Brien Avatar answered Oct 22 '22 20:10

Josh O'Brien


Maybe something like:

system("iexplore.exe http://www.foo.bar/eggs.html")

Could work under windows.

like image 5
Paul Hiemstra Avatar answered Oct 22 '22 21:10

Paul Hiemstra