new_project: Setup a new state project with default directories and...

Description Usage Arguments See Also Examples

View source: R/new.R

Description

This is intended to be run before data processing for a new state begins.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
new_project(
  state,
  period,
  analysis_path = file.path("E:/OneDrive - Southwick Associates, Inc/Documents/SA/Projects/Data-Dashboards", state, period),
  sensitive_path = file.path("E:/OneDrive - Southwick Associates, Inc/Documents/SA/Data-Sensitive/Data-Dashboards", state,
    paste0("raw-", period)),
  production_path = file.path("E:/OneDrive - Southwick Associates, Inc/Documents/SA/Data-Production/Data-Dashboards", state),
  template_path = "template",
  print_message = "A new license data project has been initialized"
)

Arguments

state

character: Two letter state designation

period

character: Time period for the first project (e.g., "2019-q4", "2020-q4", etc.)

analysis_path

character: File path for the analysis

sensitive_path

character: File path for the sensitive data. If NULL, no folders will be created.

production_path

character: File path for the production data. If NULL, no folders will be created.

template_path

character: Name of inst subpath in the package that points to the template files

print_message

character: Message to print on success

See Also

Other functions for new projects based on templates: new_project_individual(), new_project_summary()

Examples

1
# new_project("XX", "2019-q4")

southwick-associates/lictemplate documentation built on Jan. 10, 2022, 6:44 p.m.