R: Launch web browser

只愿长相守 提交于 2021-02-18 09:54:29

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!