Learn R Programming

adapr (version 2.0.0)

create_source_file_dir: Create source file directories

Description

Create source file directories

Usage

create_source_file_dir(project.id0 = get("project.id"),
  source.file0 = get("source.file"), source.description = "")

Arguments

project.id0

project id name string

source.file0

filename of the source

source.description

character description of what the source file does

Value

source_info list describing the project

Details

Intializes git for the project, adds program git tracking, creates project library and initializes dependency tracking. Creates directories for Project and Results. Initialize the file tracking object source_info. Gathers file information on all project files.Initialize Git for project (if using Git). Adds dependencies files to Git Initialized archivist repo for script Run all R scripts in support_function directory Run all R scripts in script specific support_function/myRscript.R directory Create R markdown file with same file prefix (if not already done). Create publication file (if not already done).

Examples

Run this code
# NOT RUN {
source_info <- create_source_file_dir("adaprHome","tree_controller.R")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab