Description Usage Arguments Value Examples
View source: R/check-files-manifest.R
Given a manifest and vector of file names, checks that the file names appear in the manifest. This is useful to ensure that metadata files (not just data files) are included in the manifest for upload.
1 2 3 4 5 6 7 | check_files_manifest(
manifest,
filenames,
strict = FALSE,
success_msg = "All required files are present in manifest",
fail_msg = "Some files may be missing from manifest"
)
|
manifest |
The manifest as a data frame or tibble |
filenames |
File names to look for in the |
strict |
If |
success_msg |
Message indicating the check succeeded. |
fail_msg |
Message indicating the check failed. |
A condition object indicating whether the files are present in the
path
column of the manifest
1 2 3 4 5 6 7 8 9 10 11 12 | manifest <- data.frame(
path = c("individual_metadata.csv", "biospecimen_metadata.csv"),
parent = c("syn123", "syn123")
)
check_files_manifest(
manifest,
c(
"individual_metadata.csv",
"biospecimen_metadata.csv",
"assay_metadata.csv"
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.