Skip to content

Commit

Permalink
Export create_GDS; HTML output off for now #9
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Jan 18, 2021
1 parent 596a5f0 commit 75fa042
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand

export(convert_to_json)
export(create_GDS)
export(create_NSSH)
export(create_OSD)
export(get_assets)
Expand Down
14 changes: 7 additions & 7 deletions R/create_GDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ download_GDS <- function() {
url = "https://www.nrcs.usda.gov/Internet/FSE_DOCUMENTS/nrcs142p2_051068.pdf")

system(sprintf("pdftotext -raw -nodiag GDS.pdf"))
system(sprintf("pdftohtml GDS.pdf"))
# system(sprintf("pdftohtml GDS.pdf"))

file.remove("GDS.pdf")

dir.create("inst/extdata/GDS", recursive = TRUE)
file.copy("GDS.txt","inst/extdata/GDS/GDS.txt")

htm <- list.files(pattern = "html")
file.copy(htm,"inst/extdata/GDS")
# htm <- list.files(pattern = "html")
# file.copy(htm,"inst/extdata/GDS")

img <- list.files(pattern = "png|jpg")
file.copy(img,"inst/extdata/GDS")
file.remove(c("GDS.txt", img, htm))
# img <- list.files(pattern = "png|jpg")
# file.copy(img,"inst/extdata/GDS")
# file.remove(c("GDS.txt", img, htm))
}

parse_GDS <- function() {
Expand Down Expand Up @@ -54,4 +54,4 @@ parse_GDS <- function() {
# - geomorphic environments and other groupings: associations of terms grouped by process or setting
# TODO: Surface Morphometry
# - Several important figures and tables -- pdftohtml?
}
}
17 changes: 17 additions & 0 deletions man/create_GDS.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 75fa042

Please sign in to comment.