-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShareResults.R
More file actions
29 lines (24 loc) · 1.12 KB
/
Copy pathShareResults.R
File metadata and controls
29 lines (24 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
##=========== START OF INPUTS ==========
# NOTE: These values must match the values used in ExecuteAnalyses.R
resultsFolder <- "e:/exampleStrategusStudy/results" # Where the output files were written
databaseName <- "CCAE" # Only used as a folder name for results from the study
# For uploading the results. You should have received these values from the Study Coordinator:
sftpKeyFileName <- "[location where you are storing: e.g. ~/keys/study-data-site-covid19.dat]"
sftpUserName <- "[user name provided by the Study Coordinator: eg: study-data-site-covid19]"
sftpRemoteFolderName <- "[remote folder name provided by the Study Coordinator]"
##=========== END OF INPUTS ==========
##################################
# DO NOT MODIFY BELOW THIS POINT
##################################
resultsFolder <- file.path(resultsFolder, databaseName)
zipFile <- file.path(resultsFolder, paste0(databaseName, ".zip"))
Strategus::zipResults(
resultsFolder = resultsFolder,
zipFile = zipFile
)
OhdsiSharing::sftpUploadFile(
privateKeyFileName = sftpKeyFileName,
userName = sftpUserName,
remoteFolder = sftpRemoteFolderName,
fileName = zipFile
)