Hi @mfherman !
I am trying to run this piece of code similar to what I had done for the above pdf. However, i am facing issue and getting the following error. any idea what could be the problem ?
gpi_table1 <- extract_tables("http://visionofhumanity.org/app/uploads/2018/06/Global-Peace-Index-2018-2.pdf",
output = "data.frame",
pages = c(10,10,10,11,11,11),
area = list(
c(496, 38, 786, 169),
c(496, 212, 786, 341),
c(496, 380, 786, 508),
c(496, 392, 738, 521),
c(496, 225, 788, 353),
c(496, 50, 786, 180)
),
guess = FALSE
)
gpi_table_clean1 <- reduce(gpi_table1, bind_rows)
ERROR:
Error in utils::download.file(path, tmp, quiet = quiet, mode = "wb") :
cannot open URL 'http://visionofhumanity.org/app/uploads/2018/06/Global-Peace-Index-2018-2.pdf'
In addition: Warning message:
In utils::download.file(path, tmp, quiet = quiet, mode = "wb") :
InternetOpenUrl failed: 'The operation timed out'
> gpi_table_clean1 <- reduce(gpi_table1, bind_rows)
Error in is_empty(x) : object 'gpi_table1' not found
Any help here would be much appreciated.
Thanks.