template_directories: Initialize directories for templates, data objects, and EML

View source: R/template_directories.R

template_directoriesR Documentation

Initialize directories for templates, data objects, and EML

Description

Create a directory structure for data package contents and EMLassemblyline files. Any organization scheme is supported. This is one recommendation.

Usage

template_directories(path, dir.name)

Arguments

path

(character) Path to where the data package directory will be created.

dir.name

(character) Name of the directory.

Details

Existing directories named with dir.name at path will not be overwritten.

Value

A directory with the following structure and contents:

  • name Name supplied via dir.name

    • data_objects Directory for data and other objects to be packaged.

    • metadata_templates Directory for EMLassemblyline template files.

    • eml Directory for EML files created by EMLassemblyline.

    • run_EMLassemblyline.R An empty R file for scripting an EMLassemblyline workflow.

Examples

## Not run: 
# Set working directory
setwd("/Users/me/Documents/data_packages")

# For data package 260
template_directories(
  path = ".",
  dir.name =  "pkg_260")

## End(Not run)


EDIorg/emlAssemblyLine documentation built on Nov. 4, 2022, 11:59 p.m.