.send_tiger_url {RcensusPkg}R Documentation

.send_tiger_url

Description

An internal function for sending http requests to the US Census Bureau TIGER api via httr::GET() function.

Usage

.send_tiger_url(
  a_url = NULL,
  output_dir = NULL,
  delete_files = TRUE,
  set_crs = NULL,
  transform_crs = NULL,
  sf_info = FALSE,
  do_progress = FALSE,
  caller = NULL
)

Arguments

a_url

A required string that defines the url to be sent in the http GET request.

output_dir

A full directory path where the shapefile and its associated files will be downloaded.

delete_files

A logical which if TRUE will delete the shapefile and associated files in 'output_dir'. The default is TRUE.

set_crs

A numeric or character string which if non-NULL calls sf::st_crs() to set the crs of the geometries.

transform_crs

A numeric or character string which if non-NULL calls sf::st_transform() to perform a crs transform of the geometries.

sf_info

A logical which if TRUE displays info on the resulting simple feature object.

do_progress

A logical which if TRUE displays a progress bar during the download.

caller

A string that identifies the function making the call.

Value

A data frame object of class sf, data frame


[Package RcensusPkg version 0.1.5 Index]