copy_input | R Documentation |
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).
copy_input(mainPath, location, input)
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. |
The user is interactively asked to select the 'input' folder destination.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.