RadEro_example: Copy Example Files from Package Data Directory to a Specified...

View source: R/RadEro_example.R

RadEro_exampleR Documentation

Copy Example Files from Package Data Directory to a Specified Directory

Description

This function copies example files (e.g., .js and .csv) from the "data" directory of the package to a specified working directory.

Usage

RadEro_example(target_dir = NULL, overwrite = TRUE)

Arguments

target_dir

The path to the directory where the files will be copied.

overwrite

Logical. Whether to overwrite the files if they already exist in the target directory (default is TRUE).

Details

The function uses "system.file()" to locate the example files within the package's "data" directory and copies them to a directory of your choice using "file.copy()".

Value

This function generates two template files in the specified directory: one for data input and another for configuration input. These templates serve as examples, demonstrating how to construct and format the input files.


RadEro documentation built on April 12, 2025, 2:13 a.m.