View source: R/reconstituteFileFromExport.R
reconstituteFileFromExport | R Documentation |
Converts the file from a response
object and saves
it to the local file directory.
reconstituteFileFromExport(
response,
dir,
dir_create = FALSE,
file_prefix = "",
filename = character(0)
)
response |
An object of class |
dir |
|
dir_create |
|
file_prefix |
|
filename |
|
exportFiles()
,
exportFromFileRepository()
,
exportFileRepository()
,
exportPdf()
## Not run:
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
response <- makeApiCall(rcon,
body = list(content = 'file',
action = 'export',
record = '1',
field = 'file_upload_test',
event = 'event_1_arm_1'))
reconstituteFileFromExport(response,
dir = tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.