migrate_eal_dir: Migrate an EAL dataset directory to a jerald directory

View source: R/user.R

migrate_eal_dirR Documentation

Migrate an EAL dataset directory to a jerald directory

Description

WARNING - this is fairly jornada-specific use at your own risk

Usage

migrate_eal_dir(eal.dir, jerald.dir)

Arguments

eal.dir

Source dataset directory, in EAL format, to migrate from

jerald.dir

Destination dataset directory, in jerald format, to migrate to

Details

This will move the files from an EMLassemblyline-formatted dataset directory to a jerald-formatted dataset directory (as described in ⁠jerald/inst/template/⁠). The jerald-formatted destination should be created first using jerald::template_dataset_dir() using a name distinct from the source directory.

All files from the EAL source directory will be copied into a new ⁠EAL_archive/⁠ directory in the jerald destination directory. Then, this function copies any "build" R scripts and data entities into the top level of the jerald directory, moves old metadata files (.dsd, etc) into ⁠metadata_docs/⁠, and moves EML files to ⁠eml/⁠.

Optionally you may remove the source dataset directory at the end but YOU SHOULD VERY CAREFULLY CHECK THE OUTPUT BEFORE ANSWERING YES!


jornada-im/jerald documentation built on Jan. 29, 2025, 11:15 p.m.