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.
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.
Details
This function performs the following tasks:
Writes the
config.ymlfile to theinst/config.ymlpath.Updates the DESCRIPTION file with the provided S3 path under the
cloudfs.s3field.Copies necessary CSS and JS files to
inst/app/www.Copies content files to
inst/app/contentCopies R scripts to
Rfolder.Updates the package description and installs development dependencies using
golem.