{"id":22413770,"url":"https://github.com/jsta/nesr","last_synced_at":"2025-10-12T14:08:46.930Z","repository":{"id":88675622,"uuid":"76367162","full_name":"jsta/nesR","owner":"jsta","description":"Scrape Data from the National Eutrophication Survey","archived":false,"fork":false,"pushed_at":"2023-10-10T18:03:24.000Z","size":26274,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-12T14:06:09.602Z","etag":null,"topics":["epa","rstats","water-quality"],"latest_commit_sha":null,"homepage":"https://dx.doi.org/10.5063/F1KK98R5","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsta.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-13T14:40:40.000Z","updated_at":"2023-10-10T18:03:30.000Z","dependencies_parsed_at":"2023-12-22T13:10:24.086Z","dependency_job_id":"fac05d14-c1a1-471b-b377-d383733600c9","html_url":"https://github.com/jsta/nesR","commit_stats":{"total_commits":88,"total_committers":2,"mean_commits":44.0,"dds":0.125,"last_synced_commit":"86928d5af8204a5dd97615c9c7df578e44cc36f8"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jsta/nesR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2FnesR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2FnesR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2FnesR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2FnesR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsta","download_url":"https://codeload.github.com/jsta/nesR/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2FnesR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011540,"owners_count":26084963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["epa","rstats","water-quality"],"created_at":"2024-12-05T14:14:32.387Z","updated_at":"2025-10-12T14:08:46.911Z","avatar_url":"https://github.com/jsta.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\nbibliography: \n  - inst/references.bib\nnocite:  |\n  @brett_review_2007, @reckhow_empirical_1988, @StachelekNationalEutrophicationSurvey2017\ncsl: inst/ecology.csl\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n```{r knitcitations, echo=FALSE, cache = FALSE}\nlibrary(knitcitations)\ncleanbib()   \ncite_options(citation_format = \"pandoc\")\n```\n\n# nesR\n\nCode to rescue (scrape) data from the National Eutrophication Survey archival PDF.\n\n## Installation\n\n### Prerequites\n\nUntil `magick` can handle local adaptive thresholding. This package requires you to be able to call the `imagemagick` `convert` command with `system()`.\n\nYou can install nesR from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"jsta/nesR\")\n```\n\n## Usage\n\n### Load package\n\n```{r }\nlibrary(nesR)\n```\n\n### Get data \n\n```{r eval=TRUE}\nnes_file \u003c- system.file(\"extdata/national-eutrophication-survey_477.PDF\", \n                        package = \"nesR\")\nres \u003c- nes_get(nes_file, 89)\nparse_nes(res)\n```\n\n### Build database\n\nAs 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.\n\n```{bash eval=FALSE}\nmake PDFSOURCE=474 all\nmake PDFSOURCE=475 all\nmake PDFSOURCE=476 all\nmake PDFSOURCE=477 all\n```\n\n# References\n\n```{r write_citations, cache=FALSE, include=FALSE,eval=FALSE}\nwrite.bibtex(file=\"inst/references.bib\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fnesr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsta%2Fnesr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fnesr/lists"}