-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
68 lines (47 loc) · 3.18 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# pipedat <a href='https://github.com/Ecosystem-Assessments/pipedat'><img src='man/figures/logo.png' align="right" height="175" /></a>
<!-- badges: start -->
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#preliminary)
![](https://img.shields.io/badge/status-preliminary-blue.svg)
[![R-CMD-check](https://github.com/Ecosystem-Assessments/pipedat/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Ecosystem-Assessments/pipedat/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
*pipedat* is a R package that provides analytical pipelines to access, load, and format a variety of data from multiple sources programatically. The goal of *pipedat* is to enhance the capacity scientists, planners and the wider public to prepare and perform complex and reproducible ecosystem-scale assessments requiring the integration of multiple spatial datasets such as cumulative effects assessments in the context of ecosystem-based management, and Marxan analyses for the establishment of individual and networks of MPAs. In its current format, *pipedat* is strictly experimental and in development. We are however hoping to further develop this initiative in the hopes of greatly enhancing the efficiency, transparency and reproducibility of large-scale environmental assessments.
## Installation
The easiest way to install `pipedat` is to use [`remotes`](https://cran.r-project.org/package=remotes):
``` r
install.packages("remotes")
remotes::install_github("Environment-Health/pipedat")
```
Then, load it:
```r
library(pipedat)
```
## Main features
The `pipedat` package is built around function called `pipedat()` that is used to access, load and format a wide variety of data; this function calls on a series of individual scripts built to access data programmatically and reproducibly, which we refer to as *data pipelines*. Individual data pipelines are executed by using their *unique identifier*, which are specific to the `pipedat` package. The full list of data pipelines available can be viewed with the `pipelist()` function:
```r
# View list of pipelines
# pipelist()
# Download and format a single dataset
# pipedat("a3jsd4jh")
# Download and format multiple datasets
# pipedat(c("a3jsd4jh","a8732975y","soif8yiao"))
```
The `pipedat()` function will export the raw and formatted data in the folder 'project-data/pipedat/'.
## List of pipelines
```{r echo = FALSE}
pipedat::pipelist()
```
## How to contribute
External contributors are welcome to contribute data pipelines to this package. Simply fork the [public repo]() and create your own data pipeline. The `pipenew()` function creates a `dp_#####.R` template for you to use to create a new data pipeline with a unique id. Create a pull request for us to review the data pipeline for inclusion in the package.
A single pull request per pipeline should be created, and merged pull requests should be squashed into a single commit.