
Export a CoMMa specification repository to a local path
export_comma_repo.RdExport a CoMMa specification repository to a local path
Usage
export_comma_repo(
x,
path,
manifestFilename = "CoMMa-specs.yml",
subdir = "CoMMa-specs",
silent = comma::opts$get("silent")
)Arguments
- x
The CoMMa specification repository, an object imported with
import_comma_repo().- path
The path to export the CoMMa repo to.
- silent
Whether to be silent or chatty.
Examples
### Get included repo location
repoPath <-
system.file(
"CoMMa-spec-repo",
"CoMMa-specs.yml",
package = "comma"
);
### Import repo
importedRepo <-
comma::import_comma_repo(
repoPath
);
### Export this repo to a temporary directory
tempDir <-
file.path(
tempdir(),
"CoMMa-spec-repo-export-example"
);
dir.create(tempDir);
comma::export_comma_repo(
importedRepo,
tempDir
);
list.files(tempDir);
#> [1] "CoMMa-specs" "CoMMa-specs.yml"