R: Launch web browser

后端 未结 2 581
逝去的感伤
逝去的感伤 2021-02-19 03:35

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 jus

相关标签:
2条回答
  • 2021-02-19 03:57

    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.

    0 讨论(0)
  • 2021-02-19 04:07

    Maybe something like:

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

    Could work under windows.

    0 讨论(0)
提交回复
热议问题