knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>")

  library(magrittr)
  library(kableExtra)

This vignette demonstrates how to utilize the ArchaeoSRP package for creating machine-readable pdfs of site forms and extracting pertinent information about the recorded each archaeological site form for research or management applications. More information on the design, installation, and functionality of ArchaeoSRP can be found in the Readme and supporting documents on GitHub.

Load required packages

library(remotes)

Install ArchaeoSRP from GitHub

remotes::install_github("seanbergin/archaeosrp", force = TRUE)
library(ArchaeoSRP)

Assign the example PDF location to a variable

pdflocation <- system.file("extdata", "SamplePDFs", package = "ArchaeoSRP", mustWork = TRUE)

Use ArchaeSRP to scan the documents and extract information

siteDF <- processPDFDirectory(pdflocation)

Display results dataframe

knitr::kable(siteDF, format = "html", table.attr = "style='width:30%;'") %>%
  kableExtra::kable_styling()
kable(siteDF, table.attr = "style='width:40%;'" ) %>% kable_classic(full_width = T, position = "center", )

siteDF %>% kable("html") %>%
  kable_styling(font_size = 9)

```



seanbergin/srp documentation built on Aug. 7, 2023, 12:31 p.m.