knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
library(knitcitations) cleanbib() cite_options(citation_format = "pandoc")
Code to rescue (scrape) data from the National Eutrophication Survey archival PDF.
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")
library(nesR)
nes_file <- system.file("extdata/national-eutrophication-survey_477.PDF", package = "nesR") res <- nes_get(nes_file, 89) parse_nes(res)
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.