-
Notifications
You must be signed in to change notification settings - Fork 3
/
ShareResults.R
26 lines (22 loc) · 922 Bytes
/
ShareResults.R
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
##=========== START OF INPUTS ==========
outputLocation <- 'D:/git/ohdsi-studies/SemaglutideNaion'
databaseName <- "MDCD"
# For uploading the results. You should have received the key file from the study coordinator:
keyFileName <- "[location where you are storing: e.g. ~/keys/study-data-site-covid19.dat]"
userName <- "[user name provided by the study coordinator: eg: study-data-site-covid19]"
##=========== END OF INPUTS ==========
##################################
# DO NOT MODIFY BELOW THIS POINT
##################################
outputLocation <- file.path(outputLocation, "results", databaseName, "strategusOutput")
zipFile <- file.path(outputLocation, paste0(databaseName, ".zip"))
Strategus::zipResults(
resultsFolder = outputLocation,
zipFile = zipFile
)
OhdsiSharing::sftpUploadFile(
privateKeyFileName = keyFileName,
userName = userName,
remoteFolder = "/your-study/",
fileName = zipFile
)