Title: | Interface to the 'Zoltar' Forecast Repository API |
---|---|
Description: | 'Zoltar' <https://www.zoltardata.com/> is a website that provides a repository of model forecast results in a standardized format and a central location. It supports storing, retrieving, comparing, and analyzing time series forecasts for prediction challenges of interest to the modeling community. This package provides functions for working with the 'Zoltar' API, including connecting and authenticating, getting meta information (projects, models, and forecasts, and truth), and uploading, downloading, and deleting forecast and truth data. |
Authors: | Matthew Cornell [aut, cre], Nicholas Reich [aut, cph] |
Maintainer: | Matthew Cornell <[email protected]> |
License: | GPL-3 |
Version: | 1.0.1 |
Built: | 2024-11-12 04:56:58 UTC |
Source: | https://github.com/reichlab/zoltr |
A convenience function that polls the passed Job's status waiting for either FAILED, TIMEOUT, or SUCCESS.
busy_poll_job(zoltar_connection, job_url, verbose = TRUE)
busy_poll_job(zoltar_connection, job_url, verbose = TRUE)
zoltar_connection |
A |
job_url |
URL of a valid job in zoltar_connection |
verbose |
if TRUE, print messages on job status poll |
## Not run: busy_poll_job(conn, "http://example.com/api/job/2/") ## End(Not run)
## Not run: busy_poll_job(conn, "http://example.com/api/job/2/") ## End(Not run)
Creates the model in the passed project using the passed list. Fails if a model with the passed name already exists.
create_model(zoltar_connection, project_url, model_config)
create_model(zoltar_connection, project_url, model_config)
zoltar_connection |
A |
project_url |
url of a project in zoltar_connection's projects. this is the project the new model will be created in |
model_config |
A |
model_url of the newly-created model
## Not run: new_model_url <- create_model(conn, "https://www.zoltardata.com/api/project/9/", jsonlite::read_json("example-model-config.json")) ## End(Not run)
## Not run: new_model_url <- create_model(conn, "https://www.zoltardata.com/api/project/9/", jsonlite::read_json("example-model-config.json")) ## End(Not run)
Creates the project using the passed project configuration list. Fails if a project with the passed name already exists.
create_project(zoltar_connection, project_config)
create_project(zoltar_connection, project_config)
zoltar_connection |
A |
project_config |
A |
project_url of the newly-created project
## Not run: new_project_url <- create_project(conn, jsonlite::read_json("cdc-project.json")) ## End(Not run)
## Not run: new_project_url <- create_project(conn, jsonlite::read_json("cdc-project.json")) ## End(Not run)
Creates the timezero in the passed project using the passed list. Fails if a timezero with the passed timezero_date already exists.
create_timezero( zoltar_connection, project_url, timezero_date, data_version_date = NULL, is_season_start = FALSE, season_name = "" )
create_timezero( zoltar_connection, project_url, timezero_date, data_version_date = NULL, is_season_start = FALSE, season_name = "" )
zoltar_connection |
A |
project_url |
url of a project in zoltar_connection's projects. this is the project the new timezero will be created in |
timezero_date |
The timezero's date in YYYY-MM-DD format as documented at https://docs.zoltardata.com/fileformats/#project-creation-configuration-json |
data_version_date |
Optional data version date in the same format. Pass NULL if the timezero does not have one |
is_season_start |
TRUE if this starts a season, and FALSE otherwise |
season_name |
Applicable when is_season_start is true, names the season, e.g., "2010-2011" |
model_url of the newly-created timezero
## Not run: new_timezero_url <- create_timezero(conn, "https://www.zoltardata.com/api/project/9/", "2022-11-08", "2022-11-09", TRUE, "2010-2011") ## End(Not run)
## Not run: new_timezero_url <- create_timezero(conn, "https://www.zoltardata.com/api/project/9/", "2022-11-08", "2022-11-09", TRUE, "2010-2011") ## End(Not run)
list
format to a data.frame
Converts forecast data from Zoltar's native list
format to a data.frame
data_frame_from_forecast_data(forecast_data)
data_frame_from_forecast_data(forecast_data)
forecast_data |
Forecast data as a |
A data.frame
from forecast_data in zoltar-specific format. The columns are:
'unit', 'target', 'class', 'value', 'cat', 'prob', 'sample', 'quantile', 'family',
'param1', 'param2', 'param3'. They are documented at
https://docs.zoltardata.com/fileformats/#forecast-data-format-csv .
NB: columns are all character (i.e., data type information from forecast_data is lost). Also note that a retracted
prediction element is represented as a single row with NA values for all but the first four columns.
## Not run: forecast_data <- jsonlite::read_json("docs-predictions.json") data_frame <- data_frame_from_forecast_data(forecast_data) ## End(Not run)
## Not run: forecast_data <- jsonlite::read_json("docs-predictions.json") data_frame <- data_frame_from_forecast_data(forecast_data) ## End(Not run)
Deletes the forecast with the passed URL. This is permanent and cannot be undone.
delete_forecast(zoltar_connection, forecast_url)
delete_forecast(zoltar_connection, forecast_url)
zoltar_connection |
A |
forecast_url |
URL of a forecast in zoltar_connection's forecasts |
A Job URL for the deletion
## Not run: delete_forecast(conn, "http://example.com/api/forecast/1/") ## End(Not run)
## Not run: delete_forecast(conn, "http://example.com/api/forecast/1/") ## End(Not run)
Deletes the model with the passed ID. This is permanent and cannot be undone.
delete_model(zoltar_connection, model_url)
delete_model(zoltar_connection, model_url)
zoltar_connection |
A |
model_url |
URL of a model in zoltar_connection's models |
None
## Not run: delete_model(conn, "http://www.zoltardata.com/api/model/1/") ## End(Not run)
## Not run: delete_model(conn, "http://www.zoltardata.com/api/model/1/") ## End(Not run)
Deletes the project with the passed URL. This is permanent and cannot be undone.
delete_project(zoltar_connection, project_url)
delete_project(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
None
## Not run: delete_project(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: delete_project(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
A convenience function to construct and execute a Zoltar query for either forecast or truth data.
do_zoltar_query( zoltar_connection, project_url, query_type, models = NULL, units = NULL, targets = NULL, timezeros = NULL, types = NULL, as_of = NULL, verbose = TRUE )
do_zoltar_query( zoltar_connection, project_url, query_type, models = NULL, units = NULL, targets = NULL, timezeros = NULL, types = NULL, as_of = NULL, verbose = TRUE )
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
query_type |
A character indicating the type of query to run. Must be one of: "forecasts" or "truth". |
models |
Character vector of model abbreviations. Used for query_type = "forecasts". |
units |
Character vector of units to retrieve. Used for all query_types. |
targets |
Character vector of targets to retrieve. Used for all query_types. |
timezeros |
Character vector of timezeros to retrieve in YYYY_MM_DD_DATE_FORMAT, e.g., '2017-01-17'. Used for all query_types. |
types |
Character vector of prediction types to retrieve. Used for query_type = "forecasts". |
as_of |
a datetime used for either query_type that constrains based on forecast |
verbose |
if TRUE, print messages on job status poll |
A data.frame
of Job's data. Full documentation at https://docs.zoltardata.com/.
## Not run: forecast_data <- do_zoltar_query( conn, "https://www.zoltardata.com/api/project/44/", "forecasts", models=c("CMU-TimeSeries", "UMass-MechBayes"), units=c("01003", "US"), targets=c("1 wk ahead inc death"), targets=c("2020-07-19", "2020-07-20"), types=c("quantile"), as_of="2020-07-10") truth_data <- do_zoltar_query( conn, "https://www.zoltardata.com/api/project/44/", "truth", c("01003", "US"), c("1 wk ahead inc death"), c("2020-07-19", "2020-07-20")) ## End(Not run)
## Not run: forecast_data <- do_zoltar_query( conn, "https://www.zoltardata.com/api/project/44/", "forecasts", models=c("CMU-TimeSeries", "UMass-MechBayes"), units=c("01003", "US"), targets=c("1 wk ahead inc death"), targets=c("2020-07-19", "2020-07-20"), types=c("quantile"), as_of="2020-07-10") truth_data <- do_zoltar_query( conn, "https://www.zoltardata.com/api/project/44/", "truth", c("01003", "US"), c("1 wk ahead inc death"), c("2020-07-19", "2020-07-20")) ## End(Not run)
Gets a forecast's data
download_forecast(zoltar_connection, forecast_url)
download_forecast(zoltar_connection, forecast_url)
zoltar_connection |
A |
forecast_url |
URL of a forecast in zoltar_connection's forecasts |
Forecast data as a list
in the Zoltar standard format. meta information is ignored. Full documentation at
https://docs.zoltardata.com/.
## Not run: forecast_data <- download_forecast(conn, "http://example.com/api/forecast/1/") ## End(Not run)
## Not run: forecast_data <- download_forecast(conn, "http://example.com/api/forecast/1/") ## End(Not run)
Edits the model in the passed project using the passed list. Fails if a model with the passed name already exists.
edit_model(zoltar_connection, model_url, model_config)
edit_model(zoltar_connection, model_url, model_config)
zoltar_connection |
A |
model_url |
url of a project in zoltar_connection's projects. this is the project the new model will be edited in |
model_config |
A |
## Not run: edit_model(conn, "https://www.zoltardata.com/api/model/2/", jsonlite::read_json("example-model-config.json")) ## End(Not run)
## Not run: edit_model(conn, "https://www.zoltardata.com/api/model/2/", jsonlite::read_json("example-model-config.json")) ## End(Not run)
list
formatLoads and converts a CDC CSV file to Zoltar's native list
format
forecast_data_from_cdc_csv_file(season_start_year, cdc_csv_file)
forecast_data_from_cdc_csv_file(season_start_year, cdc_csv_file)
season_start_year |
An integer specifying the "season" that cdc_csv_file is in. Used to convert EWs to YYYY_MM_DD_DATE_FORMAT. zoltr uses week 30 as the season breakpoint, e.g. the "2016/2017 season" starts with |
cdc_csv_file |
A CDC CSV file |
cdc_csv_file's data as Zoltar's native list
format, but only the "predictions" item, and not "meta"
## Not run: forecast_data <- forecast_data_from_cdc_csv_file(2016, "my_forecast.cdc.csv") ## End(Not run)
## Not run: forecast_data <- forecast_data_from_cdc_csv_file(2016, "my_forecast.cdc.csv") ## End(Not run)
forecast_data_from_cdc_csv_file()
helperforecast_data_from_cdc_csv_file()
helper
forecast_data_from_cdc_data_frame(season_start_year, cdc_data_frame)
forecast_data_from_cdc_data_frame(season_start_year, cdc_data_frame)
season_start_year |
as passed to |
cdc_data_frame |
"" |
same as forecast_data_from_cdc_csv_file()
Gets a forecast's information
forecast_info(zoltar_connection, forecast_url)
forecast_info(zoltar_connection, forecast_url)
zoltar_connection |
A |
forecast_url |
URL of a forecast in zoltar_connection's forecasts |
A list
of forecast information for the passed forecast_url
## Not run: the_forecast_info <- forecast_info(conn, "http://example.com/api/forecast/1/") ## End(Not run)
## Not run: the_forecast_info <- forecast_info(conn, "http://example.com/api/forecast/1/") ## End(Not run)
Get a model's forecasts
forecasts(zoltar_connection, model_url)
forecasts(zoltar_connection, model_url)
zoltar_connection |
A |
model_url |
URL of a model in zoltar_connection's models |
A data.frame
of forecast information for the passed model
## Not run: the_forecasts <- forecasts(conn, "http://www.zoltardata.com/api/model/1/") ## End(Not run)
## Not run: the_forecasts <- forecasts(conn, "http://www.zoltardata.com/api/model/1/") ## End(Not run)
Get JSON for a resource (URL). Authenticates if necessary
get_resource(zoltar_connection, url, col_types = NULL)
get_resource(zoltar_connection, url, col_types = NULL)
zoltar_connection |
A |
url |
A string of the resource's URL |
col_types |
Same as readr::read_csv takes |
A list
that contains JSON information for the passed URL
Downloads the data for jobs that have an associated file, such as a query's results. Called on Jobs
that are the results of a project forecast or truth queries via submit_query()
. NB: It is a 404 Not Found
error if this is called on a Job that has no underlying S3 data file, which can happen b/c: 1) 24 hours has
passed (the expiration time) or 2) the Job is not complete and therefore has not saved the data file. For
the latter you may use busy_poll_job()
to ensure the job is done.
job_data(zoltar_connection, job_url, query_type)
job_data(zoltar_connection, job_url, query_type)
zoltar_connection |
A |
job_url |
URL of a valid job in zoltar_connection that has a data file associated with it |
query_type |
A character indicating the type of query to run. Must be one of: "forecasts" or "truth". |
A data.frame
of Job's data. The columns depend on query_type - see
https://docs.zoltardata.com/fileformats/#truth-data-format-csv and
https://docs.zoltardata.com/fileformats/#forecast-data-format-csv.
## Not run: the_job_data <- job_data(conn, "http://example.com/api/job/2/") ## End(Not run)
## Not run: the_job_data <- job_data(conn, "http://example.com/api/job/2/") ## End(Not run)
Gets a job's information that can be used to track the job's progress. Jobs represent long-running asynchronous activities like uploading a file (e.g., a forecast or truth) or running a query.
job_info(zoltar_connection, job_url)
job_info(zoltar_connection, job_url)
zoltar_connection |
A |
job_url |
URL of a valid job in zoltar_connection |
A list
of job information for the passed job_url. it has these names:
id, url, status, user, created_at, updated_at, failure_message, input_json, output_json
## Not run: the_job_info <- job_info(conn, "http://example.com/api/job/2/") ## End(Not run)
## Not run: the_job_info <- job_info(conn, "http://example.com/api/job/2/") ## End(Not run)
A helper function for jobs representing file uploads. Returns the URL of a newly-uploaded forecast from job_info.
job_info_forecast_url(zoltar_connection, the_job_info)
job_info_forecast_url(zoltar_connection, the_job_info)
zoltar_connection |
A |
the_job_info |
a |
A URL of the new forecast
## Not run: new_forecast_url <- job_info_forecast_url(conn, "http://example.com/api/job/2/") ## End(Not run)
## Not run: new_forecast_url <- job_info_forecast_url(conn, "http://example.com/api/job/2/") ## End(Not run)
Get a project's latest_forecasts
latest_forecasts(zoltar_connection, project_url)
latest_forecasts(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
A data.frame
of all of the latest forecasts for the passed project. columns: forecast_id, source.
(Later we may generalize to allow passing specific columns to retrieve, such as 'forecast_model_id',
'time_zero_id', 'issued_at', 'created_at', 'source', and 'notes'.)
## Not run: the_latest_forecasts <- latest_forecasts(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: the_latest_forecasts <- latest_forecasts(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
Get information about a model
model_info(zoltar_connection, model_url)
model_info(zoltar_connection, model_url)
zoltar_connection |
A |
model_url |
URL of a model in zoltar_connection's models |
A list
of model information for the passed model_url
## Not run: the_model_info <- model_info(conn, "http://www.zoltardata.com/api/model/1/") ## End(Not run)
## Not run: the_model_info <- model_info(conn, "http://www.zoltardata.com/api/model/1/") ## End(Not run)
Get a project's models
models(zoltar_connection, project_url)
models(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
A data.frame
of model contents for all models in the passed project
## Not run: the_models <- models(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: the_models <- models(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
Returns a new connection object, which is the starting point for working with the Zoltar API. Once you have the
connection you can call zoltar_authenticate()
on it, and then call projects()
to get a list
of Project objects to start working with.
new_connection(host = "https://zoltardata.com")
new_connection(host = "https://zoltardata.com")
host |
The Zoltar site to connect to. Does not include a trailing slash ('/'). Defaults to https://zoltardata.com |
A note on URLs: We require a trailing slash ('/') on all URLs. The only exception is the host arg passed to this function. This convention matches Django REST framework one, which is what Zoltar is written in.
A ZoltarConnection
object
## Not run: conn <- new_connection() ## End(Not run)
## Not run: conn <- new_connection() ## End(Not run)
Get information about a project
project_info(zoltar_connection, project_url)
project_info(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
A list
of project information for the passed project_url
## Not run: the_project_info <- project_info(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: the_project_info <- project_info(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
Get information about all projects
projects(zoltar_connection)
projects(zoltar_connection)
zoltar_connection |
A |
A data.frame
of all projects' contents
## Not run: the_projects <- projects(conn) ## End(Not run)
## Not run: the_projects <- projects(conn) ## End(Not run)
list
format to a quantile data.frame
Converts forecast data from Zoltar's native list
format to a quantile data.frame
quantile_data_frame_from_forecast_data(forecast_data)
quantile_data_frame_from_forecast_data(forecast_data)
forecast_data |
Forecast data as a |
A data.frame
from forecast_data that's the same as data_frame_from_forecast_data()
does except
only includes point and quantile rows, and with this header: 'location', 'target', 'type', 'quantile',
'value', i.e., 'unit' -> 'location' and 'class' -> 'type'
## Not run: forecast_data <- jsonlite::read_json("docs-predictions.json") data_frame <- quantile_data_frame_from_forecast_data(forecast_data) ## End(Not run)
## Not run: forecast_data <- jsonlite::read_json("docs-predictions.json") data_frame <- quantile_data_frame_from_forecast_data(forecast_data) ## End(Not run)
Submits a request for the execution of a query of either forecasts or truth in this Project.
submit_query(zoltar_connection, project_url, query_type, query)
submit_query(zoltar_connection, project_url, query_type, query)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
query_type |
A character indicating the type of query to run. Must be one of: "forecasts" or "truth". |
query |
A |
a Job URL for tracking the query and getting its results when it successfully completes
## Not run: job_url <- submit_query(conn, "https://www.zoltardata.com/api/project/9/", "forecasts", list("models"=list("60-contact", "CovidIL_100"), "units"=list("US"), "targets"=list(1894, 1897), "timezeros"=list("2020-05-14", "2020-05-09"), "types"=list("point", "quantile"))) ## End(Not run)
## Not run: job_url <- submit_query(conn, "https://www.zoltardata.com/api/project/9/", "forecasts", list("models"=list("60-contact", "CovidIL_100"), "units"=list("US"), "targets"=list(1894, 1897), "timezeros"=list("2020-05-14", "2020-05-09"), "types"=list("point", "quantile"))) ## End(Not run)
Get information about a target
target_info(zoltar_connection, target_url)
target_info(zoltar_connection, target_url)
zoltar_connection |
A |
target_url |
URL of a target in zoltar_connection's targets |
A list
of target information for the passed target_url
## Not run: the_target_info <- target_info(conn, "https://www.zoltardata.com/api/target/3/") ## End(Not run)
## Not run: the_target_info <- target_info(conn, "https://www.zoltardata.com/api/target/3/") ## End(Not run)
Get a project's targets
targets(zoltar_connection, project_url)
targets(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
A data.frame
of target contents for the passed project
## Not run: the_targets <- targets(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: the_targets <- targets(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
Get information about a timezero
timezero_info(zoltar_connection, timezero_url)
timezero_info(zoltar_connection, timezero_url)
zoltar_connection |
A |
timezero_url |
URL of a timezero in zoltar_connection's timezeros |
A list
of timezero information for the passed timezero_url
## Not run: the_timezero_info <- timezero_info(conn, "https://www.zoltardata.com/api/timezero/3/") ## End(Not run)
## Not run: the_timezero_info <- timezero_info(conn, "https://www.zoltardata.com/api/timezero/3/") ## End(Not run)
Get a project's timezeros
timezeros(zoltar_connection, project_url)
timezeros(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
A data.frame
of timezero contents for the passed project
## Not run: the_timezeros <- timezeros(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: the_timezeros <- timezeros(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
Get information about a project's truth
truth_info(zoltar_connection, project_url)
truth_info(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
A list
of project truth information for the passed project_url
## Not run: the_truth_info <- truth_info(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: the_truth_info <- truth_info(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
Get information about a unit
unit_info(zoltar_connection, unit_url)
unit_info(zoltar_connection, unit_url)
zoltar_connection |
A |
unit_url |
URL of a unit in zoltar_connection's zoltar_units |
A list
of unit information for the passed unit_url
## Not run: the_unit_info <- unit_info(conn, "https://www.zoltardata.com/api/unit/3/") ## End(Not run)
## Not run: the_unit_info <- unit_info(conn, "https://www.zoltardata.com/api/unit/3/") ## End(Not run)
This function submits forecast data to the server for uploading. Returns a Job object that can be used to
up, which depends on the number of current uploads in the queue. Zoltar tracks these via Job
objects.)
upload_forecast( zoltar_connection, model_url, timezero_date, forecast_data, is_json = TRUE, notes = "" )
upload_forecast( zoltar_connection, model_url, timezero_date, forecast_data, is_json = TRUE, notes = "" )
zoltar_connection |
A |
model_url |
URL of a model in zoltar_connection's projects |
timezero_date |
The date of the project timezero you are uploading for. it is a string in format YYYYMMDD |
forecast_data |
Forecast data to upload data to upload, either a |
is_json |
TRUE if forecast_data is JSON (list) format, and FALSE if it is CSV (dataframe) format |
notes |
Optional user notes for the new forecast |
A Job URL for the upload
## Not run: forecast_data <- jsonlite::read_json("docs-predictions.json") job_url <- upload_forecast(conn, "http://www.zoltardata.com/api/model/1/", "2017-01-17", forecast_data, TRUE, "a mid-January forecast") ## End(Not run)
## Not run: forecast_data <- jsonlite::read_json("docs-predictions.json") job_url <- upload_forecast(conn, "http://www.zoltardata.com/api/model/1/", "2017-01-17", forecast_data, TRUE, "a mid-January forecast") ## End(Not run)
Uploads the data in truth_csv_file to the project identified by project_url.
upload_truth(zoltar_connection, project_url, truth_csv_file, issued_at = NULL)
upload_truth(zoltar_connection, project_url, truth_csv_file, issued_at = NULL)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
truth_csv_file |
A CSV file as documented at https://docs.zoltardata.com/fileformats/#truth-data-format-csv |
issued_at |
optional datetime to use for the uploaded truth forecasts' issued_at value in ISO 8601 format. NB: it must include timezone information. (the default issued_at is the time of upload.) the value must obey the constraints documented at https://docs.zoltardata.com/forecastversions/#forecast-version-rules |
A Job URL for the upload
## Not run: job_url <- upload_truth(conn, "http://www.zoltardata.com/api/project/1/", "truth.csv") ## End(Not run)
## Not run: job_url <- upload_truth(conn, "http://www.zoltardata.com/api/project/1/", "truth.csv") ## End(Not run)
Returns a new ZoltarConnection
object, which is the starting point for working with the Zoltar API.
Once you have the connection you can call zoltar_authenticate()
on it, and call projects()
to get a list of objects
to start working with.
zoltar_authenticate(zoltar_connection, username, password)
zoltar_authenticate(zoltar_connection, username, password)
zoltar_connection |
A |
username |
Username for the account to use on the connection's host |
password |
Password "" |
None
## Not run: zoltar_authenticate(conn, "USERNAME", "PASSWORD") ## End(Not run)
## Not run: zoltar_authenticate(conn, "USERNAME", "PASSWORD") ## End(Not run)
Get a project's zoltar_units
zoltar_units(zoltar_connection, project_url)
zoltar_units(zoltar_connection, project_url)
zoltar_connection |
A |
project_url |
URL of a project in zoltar_connection's projects |
A data.frame
of unit contents for the passed project
## Not run: the_units <- zoltar_units(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)
## Not run: the_units <- zoltar_units(conn, "https://www.zoltardata.com/api/project/9/") ## End(Not run)