Prepare Trio files and download metadata for submission
Source:R/SubmissionDataset.R
prepareTrioSubmissionFiles.RdThis helper reuses the good parts of the old writeCTD() workflow for the
new submission path. It can either save dataset/evidence files locally so
the user can upload them, or reuse an existing downloadable source already
attached to the Trio.
Usage
prepareTrioSubmissionFiles(
trio,
name = trio$name,
outputDir = ".",
saveData = NULL,
saveEvidence = NULL,
useExistingSource = NULL,
figshareUrl = NULL,
datasetFileName = NULL,
evidenceFileName = NULL,
verifyFigshare = FALSE,
skipMd5Check = FALSE
)Arguments
- trio
A
Trioobject.- name
Dataset name used for generated filenames. Defaults to
trio$name.- outputDir
Directory for generated
.rdsfiles. Defaults to".".- saveData
Logical indicating whether to save
trio$datato an RDS file. IfNULLand interactive, the user is prompted.- saveEvidence
Logical indicating whether to save all supporting evidence to a single RDS file. If
NULLand interactive, defaults toTRUE.- useExistingSource
Logical indicating whether to keep using
trio$dataSource/trio$dataSourceIDrather than preparing uploaded files. IfNULLand interactive, the user is prompted when an existing source is available.Optional Figshare URL to verify against prepared files.
- datasetFileName
Optional dataset filename to match inside the Figshare article.
- evidenceFileName
Optional evidence filename to match inside the Figshare article.
Logical; if
TRUE, verify the prepared files against the Figshare article metadata.- skipMd5Check
Logical; if
TRUE, allow verification without MD5 matching.