-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
52 lines (38 loc) · 1.67 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
---
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%"
)
```
# fgeo.scbi
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Travis build status](https://travis-ci.org/forestgeo/fgeo.scbi.svg?branch=master)](https://travis-ci.org/forestgeo/fgeo.scbi)
[![Coveralls test coverage](https://coveralls.io/repos/github/forestgeo/fgeo.scbi/badge.svg)](https://coveralls.io/r/forestgeo/fgeo.scbi?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/fgeo.scbi)](https://cran.r-project.org/package=fgeo.scbi)
<!-- badges: end -->
The goal of fgeo.scbi is to provide easy access to data from the Smithsonian Conservation Biology Institute (SCBI) ForestGEO plot. For now, this is an experimental package to test a new approach to sharing ForestGEO data.
## Installation
```r
# install.packages("devtools")
devtools::install_github("forestgeo/fgeo.scbi")
```
## Example
Access data from dryad (https://doi.org/10.5061/dryad.6nc8c).
![](https://i.imgur.com/cwQzCeY.gif)
Access data from the [public data portal on GitHub](https://github.com/SCBI-ForestGEO/SCBI-ForestGEO-Data).
```{r, warning=FALSE, message=FALSE}
library(purrr)
github_path <-
"SCBI-ForestGEO/SCBI-ForestGEO-Data/tree_main_census/data/census-csv-files"
download_urls <- ghr::ghr_ls_download_url(github_path)
download_urls %>%
purrr::map(readr::read_csv) %>%
purrr::set_names(fs::path_file(download_urls))
```