Creates a summary report of polygon maps

build_map_report(outDir = getwd(), region = "Kaduna",
  survey_points_path = "../1_data", polygon_dir = "../2_results",
  addDate = TRUE)

Arguments

outDir

the output directory. Defaults to the current working directory

region

the name of the region. Used to add a title to the report and for file naming

survey_points_path

the file path to the survey points dataset

polygon_dir

the file path to the survey polygons

Value

Creates a HTML report containing an interactive map for each polygon

Examples

# Load Data from the package path_data <- system.file("extdata", package = "polyCheck") # Settlement types path_polygons <- file.path(path_data, "polygons") path_survey_points <- file.path(path_data, "survey_points_sample.shp") directory <- file.path(getwd(), "reports") # Builds a summary report build_map_report(outDir = directory, survey_points_path = path_survey_points, polygon_dir = path_polygons, addDate = FALSE)
#> Creating report in Directory:/Users/michaelharper/Documents/GitHub/polyCheck/docs/reference/reports
#> #> #> processing file: mapTemplate.Rmd
#> | | | 0% | |...... | 9% #> inline R code fragments #> #> | |............ | 18% #> label: unnamed-chunk-1 (with options) #> List of 2 #> $ echo : logi FALSE #> $ engine: chr "css" #> #> | |.................. | 27% #> ordinary text without R code #> #> | |........................ | 36% #> label: setup (with options) #> List of 1 #> $ include: logi FALSE #> #> | |.............................. | 45% #> ordinary text without R code #> #> | |................................... | 55% #> label: unnamed-chunk-2 (with options) #> List of 2 #> $ echo : logi FALSE #> $ include: logi FALSE #>
#> Quitting from lines 54-57 (mapTemplate.Rmd)
#> Error: survey_points is not of class a spatial object
#>