copy_input: Copy Input

copy_inputR Documentation

Copy Input

Description

Copy a manually downloaded input to the project corresponding directory before being processed. To avoid possible further conflicts, the input has to be a "raw" input (i.e. not projected).

Usage

copy_input(mainPath, location, input)

Arguments

mainPath

character; the parent directory of the location folder

location

character; the location folder name

input

character; the absolute path of the raw input. Can be a single path (corresponding to e.g. a health facility table) or a vector of different paths (corresponding to e.g. shapefile documents). Can also be the path of a folder. In this case, the function will copy all the files that are inside this folder.

Details

The user is interactively asked to select the 'input' folder destination.

Examples

# Replace workDir with the actual path to your working directory
## Not run: 
mainPath <- "workDir"
initiate_project(mainPath)
## End(Not run)

# Replace myCountry with the location name you are working on (workDir subfolder)
# Replace myInputPath with the actual path to the file to be copied or to the directory
# that contains the files to be copied (e.g., shapfile documents)
## Not run: 
location <- "myLocation"
inputPath <- "myInputPath"
copy_input(mainPath, location, inputPath)
## End(Not run)

ptimoner/inAccMod documentation built on Jan. 27, 2025, 9:34 a.m.