knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
library(knitcitations)
cleanbib()   
cite_options(citation_format = "pandoc")

nesR

Code to rescue (scrape) data from the National Eutrophication Survey archival PDF.

Installation

Prerequites

Until magick can handle local adaptive thresholding. This package requires you to be able to call the imagemagick convert command with system().

You can install nesR from github with:

# install.packages("devtools")
devtools::install_github("jsta/nesR")

Usage

Load package

library(nesR)

Get data

nes_file <- system.file("extdata/national-eutrophication-survey_477.PDF", 
                        package = "nesR")
res <- nes_get(nes_file, 89)
parse_nes(res)

Build database

As written, building the NES database requires GNU Make and the ability to run R commands using the Rscript command-line utility (aka doesn't work on Windows). For best results, use a machine with at least 4 GB RAM.

```{bash eval=FALSE} make PDFSOURCE=474 all make PDFSOURCE=475 all make PDFSOURCE=476 all make PDFSOURCE=477 all

# References

```r
write.bibtex(file="inst/references.bib")


jsta/nesR documentation built on Oct. 16, 2023, 12:25 a.m.