Skip to contents

Serializes mighty_config, study_config, and mighty_study objects back to YAML files. mighty_config and study_config inherit the S7schema::write_config() method of their parent class; mighty_study adds a method that writes every domain plus _mighty.yml and _study.yml.

Usage

write_config(x, path = NULL)

## S7 method for class <mighty.metadata::mighty_study>
write_config(x, path = NULL)

Arguments

x

A mighty_config, study_config, or mighty_study object.

path

Destination to write to. A file for mighty_config and study_config, a directory for mighty_study. If NULL, defaults to the source the object was loaded from. Objects built from .data have @file set to NULL, so path must be supplied explicitly for those.

Value

Invisibly returns x.