upload {planscorer} | R Documentation |
Upload to PlanScore
Description
Upload to PlanScore
Usage
ps_upload_file(
file,
description = NULL,
incumbents = NULL,
model_version = NULL,
library_metadata = NULL,
temporary = TRUE
)
ps_upload_redist(map, plans, draw, ...)
ps_upload_shp(shp, ...)
Arguments
file |
file to upload, one of a geojson, block assignment file, or zipped shape file |
description |
text for plan description |
incumbents |
Incumbent party, one of |
model_version |
character model version to use. Available options are listed by |
library_metadata |
Any additional data to be passed through for possible later use.
For advanced use: Should likely be left |
temporary |
Should a temporary PlanScore upload be used? Default is TRUE. |
map |
a |
plans |
a |
draw |
the draw to use from |
... |
arguments to pass on to |
shp |
an |
Value
list of links to index and plan, on success
Examples
# Requires API Key
file <- system.file('extdata/null-plan-incumbency.geojson', package = 'planscorer')
ps_upload_file(file)
[Package planscorer version 0.0.1 Index]