View source: R/pull_remote_recent.R
pull_remote_recent | R Documentation |
Pull ODK forms from remote ODK Aggregate via ODK Briefcase This is a modification of pull_remote, which allows for a start_fresh option
pull_remote_recent( target = "", briefcase = "odkBriefcase_latest", sd = FALSE, id = "", to = "", from = "", include_incomplete = FALSE, max_http_connections = NULL, username, password, start_fresh = FALSE )
target |
Path to directory of ODK Briefcase |
briefcase |
Filename of the downloaded ODK Briefcase |
sd |
Logical. If TRUE, create an ODK Briefcase Storage in the path
specified by |
id |
Form ID of form to be pulled |
to |
Destination directory for pulled ODK forms |
from |
URL of remote ODK Aggregate server to pull ODK forms data from |
include_incomplete |
Logical. Should incomplete forms be pulled? Default to FALSE |
max_http_connections |
Integer value for maximum simultaneous HTTP connections allowed. Defaults to NULL which will allow for the default 8 simultaneous HTTP connections. Specify this parameter if more simultaneous connections are required. Maximum value is 32. |
username |
Username for account in remote ODK Aggregate server from which forms are to be pulled |
password |
Password for account in remote ODK Aggregate server from which forms are to be pulled |
start_fresh |
Whether to start data retrieval fresh (TRUE) or use already existant xml files in the briefcase directory (FALSE) |
Folder in destination directory named "ODK Briefcase Storage" containing forms pulled from remote ODK Aggregate server
# Use latest ODK Briefcase and connect to a test # remote ODK Aggregate server from ONA (https://ona.io); pulled forms to # be saved in default location at current working directory ## Not run: dirPath <- tempdir() get_briefcase(destination = dirPath) pull_remote(target = dirPath, id = "stakeholders", from = "https://ona.io/validtrial", to = dirPath, username = "validtrial", password = "zEF-STN-5ze-qom") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.