Skip to content

Commit

Permalink
Release (#26)
Browse files Browse the repository at this point in the history
* Rename first argument to meet tidyverse principles
* Prepare next release
* Increment version number
  • Loading branch information
maurolepore authored Jan 28, 2019
1 parent 4c6b6ba commit 0b419c9
Show file tree
Hide file tree
Showing 16 changed files with 377 additions and 27 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: fgeo.x
Title: Access Small ForestGEO Datasets For Examples
Version: 1.0.1.9000
Version: 1.1.0
Authors@R:
c(person(given = "Mauro",
family = "Lepore",
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

* Work in progress.

# fgeo.x 1.0.1 (GitHub release)
# fgeo.x 1.1.0 (GithHub release)

* First argument of most visible functions are now named following tidyverse principles (<http://bit.ly/2TfDcfX>)

# fgeo.x 1.0.1 (GitHub and drat release)

* Review documentation.

Expand Down
10 changes: 5 additions & 5 deletions R/download_data.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Access data stored online.
#'
#' @param .data A string giving the name of the dataset to download. The name of
#' any dataset listed [here](
#' @param x A string giving the name of the dataset to download. The name
#' of any dataset listed [here](
#' https://github.com/forestgeo/fgeo.data/tree/master/data) (without the
#' extension).
#'
Expand All @@ -14,14 +14,14 @@
#' }
#' @family datasets
#' @export
download_data <- function(.data) {
download_data <- function(x) {
tmp <- tempfile()
utils::download.file(data_url(.data), tmp)
utils::download.file(data_url(x), tmp)

e <- new.env()
load(tmp, envir = e)

e[[.data]]
e[[x]]
}

data_url <- function(x) {
Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Access small example datasets from [Luquillo](https://forestgeo.si.edu/sites/nor
Install the latest stable version of **fgeo.x** with:

```R
# install.packages("devtools")
devtools::install_github("forestgeo/fgeo.x@*release")
these_repos <- c(getOption("repos"), "https://forestgeo.github.io/drat")
install.packages("fgeo.x", repos = these_repos)
```

Install the development version of **fgeo.x** with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ ForestGEO site in Puerto Rico.
Install the latest stable version of **fgeo.x** with:

``` r
# install.packages("devtools")
devtools::install_github("forestgeo/fgeo.x@*release")
these_repos <- c(getOption("repos"), "https://forestgeo.github.io/drat")
install.packages("fgeo.x", repos = these_repos)
```

Install the development version of **fgeo.x** with:
Expand Down
2 changes: 1 addition & 1 deletion docs/CODE_OF_CONDUCT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/ISSUE_TEMPLATE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

333 changes: 333 additions & 0 deletions docs/README.knit.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/SUPPORT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ fgeo
forestgeo
ForestGEO
funder
GithHub
http
https
lifecycle
luquillo
Luquillo
ly
si
TfDcfX
tidyverse
6 changes: 3 additions & 3 deletions man/download_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b419c9

Please sign in to comment.