Question: I am looking for script to extract table text from pdfs using pdfminer. I have tried tabula but I am looking to integrate the normal text and table text to a database. Any ideas on how to implement this are welcome.

Answer: 
Base R includes function `untar`. On my Ubuntu 19.10 running R 3.6.2, default installation, the following was enough.

```
fls <- list.files(pattern = "\\.xz")
untar(fls[1], verbose = TRUE)

```

**Note.**  

In the question, "dataset" is singular but there were several datasets (plural) on that website. To download the files I used

```
args <- "--verbose rsync://78.46.86.149:873/dnmarchives/grams.tar.xz rsync://78.46.86.149:873/dnmarchives/grams-20150714-20160417.tar.xz ./"
cmd <- "rsync"

od <- getwd()
setwd('~/tmp')

system2(cmd, args)

```
Thanks everyone! Not sure what was wrong with r for a bit but I reinstalled. I ended up unzipping manually and loading up the files.