[R] Webshot failed to take snapshot in Ubuntu machine

Christofer Bogaso bog@@o@chri@tofer @ending from gm@il@com
Tue Dec 18 13:39:08 CET 2018


Also the Session information.

> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] pdftools_2.0  webshot_0.5.1

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.19     ps_1.1.0         crayon_1.3.4     assertthat_0.2.0
 [5] R6_2.3.0         jsonlite_1.5     magrittr_1.5     pillar_1.3.0
 [9] rlang_0.2.2      debugme_1.1.0    callr_3.0.0      tools_3.4.4
[13] compiler_3.4.4   processx_3.2.0   base64enc_0.1-3  tibble_1.4.2

On Tue, Dec 18, 2018 at 6:07 PM Christofer Bogaso <
bogaso.christofer using gmail.com> wrote:

> Hi,
>
> I was using webshot package to take snapshot of a webpage as below:
>
> library(webshot)
> webshot('
> https://www.bseindia.com/stock-share-price/asian-paints-ltd/asianpaint/500820/',
> 'bb.pdf')
>
> However what I see is a Blank PDF file is saved.
>
> However if I use the same code in my windows machine it is able to produce
> correct snapshot.
>
> Below is my system information
> > Sys.info()
>                                        sysname
>                                        "Linux"
>                                        release
>                            "4.4.0-139-generic"
>                                        version
> "#165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018"
>                                       nodename
>                   "ubuntu-s-2vcpu-4gb-blr1-01"
>                                        machine
>                                       "x86_64"
>                                          login
>                                         "root"
>                                           user
>                                         "root"
>                                 effective_user
>                                         "root"
>
> Any idea what went wrong would be highly helpful.
>
> Thanks,
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list