Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit 4df3a62

Browse files
authored
Update README.md
deprecated
1 parent 8425607 commit 4df3a62

File tree

1 file changed

+2
-85
lines changed

1 file changed

+2
-85
lines changed

README.md

+2-85
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,2 @@
1-
North American Bat Monitoring Program: R Data Connection Package <a href='https://nabatmonitoring.org/#/home'><img src='./inst/templates/NABat_Circle_color.jpg' align="right" height="139" /></a>
2-
===
3-
4-
## Package Abstract
5-
6-
The North American Bat Monitoring Program: R Data Connection Package can be used to extract and upload data to the NABat Monitoring Program through the GQL API. This software is written as a wrapper around the NABat GQL API. Documentation for the database and API can be found at https://sciencebase.usgs.gov/. This code includes the ability to reformat NABat data, upload NABat data, create reports, find GRTS cells, and more (see vignettes in package). This code does not support modeling and analysis of data.
7-
8-
Vignettes and Examples can be used to better understand/utilize the functionality of the code. Users may access data or connect to projects that they have permissions to in the NABat Partner Portal ([NABat Website](https://sciencebase.usgs.gov/nabat/#/home)). Because permissions are defined NABat Partner Portal user accounts, users must have a partner portal account to interact with the NABat API. Accounts can be created via the Partner Portal.
9-
10-
11-
## Installation
12-
13-
To install the toolbox in R run the following commands in a R terminal
14-
15-
```
16-
# If you are on windows, be sure to install Rtools from
17-
## https://cran.r-project.org/bin/windows/Rtools and follow
18-
## install directions from there
19-
20-
install.packages(c('devtools','dplyr','flextable','ggplot2','htmltools','htmlwidgets',
21-
'httr','jsonlite','leaflet','lubridate','magrittr','maps','maptools','mapview','officer',
22-
'plotly','plyr','raster','rgdal','rmarkdown','sp','xml2', 'stringr'))
23-
24-
```
25-
26-
## Install from USGS software release (https://code.usgs.gov/fort/nabat/nabatr)
27-
```
28-
devtools::install_git("https://code.usgs.gov/fort/nabat/nabatr.git")
29-
30-
library(nabatr)
31-
```
32-
note: Refreshing R on windows: (Ctrl+Shift+F10) Mac: (Cmd+Shift+Fn+F10)
33-
34-
## Install from provisional software (most up to date) (https://github.com/usgs/nabatr)
35-
```
36-
# Download Master branch and if it's been updated, reinstall latest version. build_vignettes
37-
## allows you to run the browseVignettes() function in the next cell. force will rebuild
38-
## the package if any new changes have been made
39-
devtools::install_github('usgs/nabatr', build_vignettes = TRUE, upgrade = 'never', force = TRUE)
40-
41-
library(nabatr)
42-
```
43-
44-
45-
## See Vignettes for examples (run in RStudio) or See .Rmd files in Examples directory
46-
```
47-
# RStudio pop up in Help tab
48-
??nabatr
49-
50-
# Web browser popup. Click the HTML link for a vignette and
51-
## copy and paste the grey chunks of code into your R file.
52-
## Change any place holders in the code and Run.
53-
browseVignettes('nabatr')
54-
55-
# If browseVignettes doesn't automatically open up a browser window,
56-
## you can use the following code to get access to the vignettes
57-
## if they were set TRUE on the install_github()
58-
vignette(package = 'nabatr')
59-
60-
# Use the names from the above command (ex):
61-
# # note: This will popup in your Help tab in Rstudio
62-
vignette('get_sa_data')
63-
```
64-
65-
If you are on windows and want to build the SA or MA report, be
66-
sure to download phantomjs. See below
67-
```
68-
webshot::install_phantomjs()
69-
```
70-
71-
## Notes
72-
73-
The Examples and Vignettes directories are essentially mirrors of each other. One is formatted into code blocks without {r} and the other
74-
is formatted with {r}. ex: ```{r} code that runs in R (examples directory)``` and ``` code that does not run in R (vignettes directory) ```
75-
76-
If ever running any of the functions in branch = 'beta', be sure you are logged onto a USGS machine and on the VPN otherwise the code won't work.
77-
Use branch = 'beta' in the login and refresh token methods in order to use any get functions with branch = 'beta'.
78-
79-
80-
## Suggested Citation
81-
82-
Enns, K.D. and Talbert, C.B., 2021, North American Bat Monitoring Program: R Data Connection Package, Version 1.0.0: U.S. Geological Survey software release, https://doi.org/10.5066/P9LSLF93
83-
84-
## IPDS
85-
IP-120295
1+
# Deprecated
2+
### Current repo: https://code.usgs.gov/fort/nabat/nabatr

0 commit comments

Comments
 (0)