Skip to contents

This function sets up the necessary files and configuration for a Message Component Analysis (MCA) simulator project. It writes a YAML configuration file, updates the DESCRIPTION file, and copies essential files like CSS, JS, and R scripts.

Usage

project_hook_mca(path, package_name, config, source_desc, ...)

Arguments

path

A character string specifying the root directory of the project.

package_name

A character string specifying the package name for the project.

config

A list containing the configuration settings for the project, typically read from a YAML file.

source_desc

Character. Source DESCRIPTION file. Result from desc::desc()

...

Additional arguments passed to internal functions.

Value

No return value. This function performs file operations and updates package metadata.

Details

This function performs the following tasks:

  • Writes the config.yml file to the inst/config.yml path.

  • Updates the DESCRIPTION file with the provided S3 path under the cloudfs.s3 field.

  • Copies necessary CSS and JS files to inst/app/www.

  • Copies content files to inst/app/content

  • Copies R scripts to R folder.

  • Updates the package description and installs development dependencies using golem.