setRepository: set/get a camera trap data repository

Description Usage Arguments Value Author(s) Examples

View source: R/base_functions.R

Description

attach to R a camera trap repository, creating it if necessary

Usage

1
2
setRepository(path = getwd(), create = FALSE)
getRepository()

Arguments

path

a valid path where the files and direstories structure of a cameratraps repository is located. See repositoryStructure for a detailed description of a repository structure.

create

a logical value. If TRUE, R will try creating the directory in path.

Value

A character representation of path, if command completed successfully.

Author(s)

Damiano G. Preatoni prea@prea.net

Examples

1
2
3
4
5
## Set /tmp/cameratraps as Repository path, create it if doesn't exist
setRepository('/tmp/cameratraps', create=TRUE)

## check that
getRepository()

dgpreatoni/cameratraps documentation built on Nov. 4, 2019, 10:30 a.m.