问题
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.
回答1:
Here you go:
browseURL("http://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.
回答2:
Maybe something like:
system("iexplore.exe http://www.foo.bar/eggs.html")
Could work under windows.
来源:https://stackoverflow.com/questions/8477958/r-launch-web-browser