[R] How to programmatically save a web-page using R (mimicking Command+S)
bogaso.christofer at gmail.com
Sat Jan 13 22:06:58 CET 2018
Thanks for your pointer. Saving via PDF is working for me, however, in
many cases, it is unusually taking a long time.
In many cases I am facing Error too as below. This is particularly
occurring if I trigger Multicore calculation option
webshot.js returned failure value: 1
Just wondering if there is any other direct ways to achieve the same.
On Sat, Jan 6, 2018 at 7:14 PM, Henrik Bengtsson
<henrik.bengtsson at gmail.com> wrote:
> The 'webshot' package (on CRAN) can do this.
> On Jan 6, 2018 05:27, "Christofer Bogaso" <bogaso.christofer at gmail.com>
>> I would appreciate if someone can give me a pointer on how to save a
>> webpage programmatically using R.
>> For example, let say I have this webpage open in my browser:
>> When manually I save this page, I just press Command+S (using Mac) and
>> then this page get saved in hard-disk
>> Now I want R to mimic this same job that I do using Command-S
>> So far I have tried with readLines() however the output content is
>> different than what I could achieve using Command+S
>> Any help will be highly appreciated.
>> Thanks for your time.
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help