create_directory_system: Create the appropriate directory system to be able to run...

View source: R/create_directory_systems.R

create_directory_systemR Documentation

Create the appropriate directory system to be able to run functions without specifying hard filepaths

Description

Create the appropriate directory system to be able to run functions without specifying hard filepaths

Usage

create_directory_system(rootdir = NULL)

Arguments

rootdir

Directory within which to create the directory system

Value

No return value, creates directory system in the specified directory.

Examples

## Create directory system compatible with rcprd's automatic saving of output
create_directory_system(tempdir())
file.exists(file.path(tempdir(),"data"))
file.exists(file.path(tempdir(),"code"))
file.exists(file.path(tempdir(),"codelists"))

## Return filespace to how it was prior to example
delete_directory_system(tempdir())


rcprd documentation built on April 12, 2025, 1:57 a.m.