write_directory: construct campel supporting files in a data package directory

View source: R/write_directory.R

write_directoryR Documentation

construct campel supporting files in a data package directory

Description

Create a directory structure for data package contents and capeml files.

Usage

write_directory(
      scope,
      identifier,
      path
    )

Arguments

scope

(character) Quoted name of the package scope (e.g., "edi"). The default is "knb-lter-cap".

identifier

(integer) Data package identifier (number).

path

(character) Path to where the config file will be written. Defaults to the current directory.

Details

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

Value

A directory with the following structure and contents:

  • name Name supplied via scope and identifier

    • config.yaml configuration file

    • data package name.Rmd workflow template

Examples

## Not run: 
# Template data package directory "edi.521"

capeml::write_directory(
  scope      = "edi",
  identifier = 521,
  path       = '~/Desktop'
)


## End(Not run)


CAPLTER/capeml documentation built on April 3, 2024, 11:17 p.m.