View source: R/get_cases_questionnaire.R
get_cases_questionnaire | R Documentation |
A function that retrieves the questionnaire fields from case data for a
specific outbreak_id
.
get_cases_questionnaire(url, username, password, outbreak_id, wait = 2)
url |
Insert the base URL for your instance of Go.Data here. Don't forget the forward slash "/" at end! |
username |
The email address for your Go.Data login. |
password |
The password for your Go.Data login |
outbreak_id |
The id number for the outbreak for which you want to download data. |
wait |
If |
Unlike get_cases()
this function only uses the export_downloader()
,
and not the batch_downloader()
. Therefore, this function will only work
on Go.Data versions 2.38.1 or newer. This method relies on the GET
outbreak/id/cases/export API endpoint. An export request is submitted to
the server, and then when the export is ready, it will be downloaded.
This function fixes the file return type to "csv"
.
Returns a tibble
.
## Not run:
url <- "https://MyGoDataServer.com/"
username <- "myemail@email.com"
password <- "mypassword"
outbreak_id <- "3b5554d7-2c19-41d0-b9af-475ad25a382b"
cases <- get_cases_questionnaire(
url = url,
username = username,
password = password,
outbreak_id = outbreak_id
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.