camr_copy_from_source: Copy Files From Source Folder

camr_copy_from_sourceR Documentation

Copy Files From Source Folder

Description

Function to copy files from a subfolder in a source folder to a new subfolder in a user-defined source folder in the current directory.

Usage

camr_copy_from_source(
  chr_source_path = "",
  chr_destination_path = "",
  chr_source_subfolder = "",
  chr_environment = "FOLDER_SOURCE",
  chr_config = "input-root-default"
)

Arguments

chr_source_path

A character string, the absolute path to the source folder.

chr_destination_path

A character string, the path to the folder to which files should be copied - if blank, uses the current working directory.

chr_source_subfolder

An optional character string, the full or partial name of a subfolder in source location with the files to copy.

chr_environment

An optional character string, the environmental variable with the path to the source folder.

chr_config

An optional character string, the input for config::get() to extract the path to the source folder from a config.yml file.

Value

As a side effect copies files to a to the specified destination folder.


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.