Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkellner committed Jan 19, 2021
1 parent 70b9a93 commit 9ed06d4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
16 changes: 11 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![R build status](https://github.com/kenkellner/ubms/workflows/R-CMD-check/badge.svg)](https://github.com/kenkellner/ubms/actions)
[![Codecov test coverage](https://codecov.io/gh/kenkellner/ubms/branch/master/graph/badge.svg)](https://codecov.io/gh/kenkellner/ubms?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/ubms)](https://cran.r-project.org/web/packages/ubms/index.html)
<!-- badges: end -->

`ubms` is an `R` package for fitting Bayesian hierarchical models of animal occurrence and abundance.
Expand All @@ -36,8 +37,13 @@ Disadvantages compared to `unmarked`:

## Installation

`ubms` is not yet on CRAN.
The latest development version can be installed from Github:
`ubms` is on [CRAN](https://cran.r-project.org/web/packages/ubms/index.html):

```{r, eval=FALSE}
install.packages("ubms")
```

Alternatively, the latest development version can be installed from Github:

```{r, eval=FALSE}
# install.packages("devtools")
Expand All @@ -52,9 +58,9 @@ install.packages(c("unmarked", "ggplot2", "gridExtra", "lme4", "loo",
"Matrix", "Rcpp", "rstan", "rstantools"))
# Download and install ubms
download.file("https://github.com/kenkellner/ubms/releases/download/v0.1.9/ubms_0.1.9.zip",
destfile="ubms_0.1.9.zip")
install.packages("ubms_0.1.9.zip", repos=NULL)
download.file("https://github.com/kenkellner/ubms/releases/download/v1.0.1/ubms_1.0.1.zip",
destfile="ubms_1.0.1.zip")
install.packages("ubms_1.0.1.zip", repos=NULL)
```

## Example
Expand Down
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
status](https://github.com/kenkellner/ubms/workflows/R-CMD-check/badge.svg)](https://github.com/kenkellner/ubms/actions)
[![Codecov test
coverage](https://codecov.io/gh/kenkellner/ubms/branch/master/graph/badge.svg)](https://codecov.io/gh/kenkellner/ubms?branch=master)
[![CRAN
status](https://www.r-pkg.org/badges/version/ubms)](https://cran.r-project.org/web/packages/ubms/index.html)
<!-- badges: end -->

`ubms` is an `R` package for fitting Bayesian hierarchical models of
Expand Down Expand Up @@ -37,8 +39,15 @@ Disadvantages compared to `unmarked`:

## Installation

`ubms` is not yet on CRAN. The latest development version can be
installed from Github:
`ubms` is on
[CRAN](https://cran.r-project.org/web/packages/ubms/index.html):

``` r
install.packages("ubms")
```

Alternatively, the latest development version can be installed from
Github:

``` r
# install.packages("devtools")
Expand All @@ -54,9 +63,9 @@ install.packages(c("unmarked", "ggplot2", "gridExtra", "lme4", "loo",
"Matrix", "Rcpp", "rstan", "rstantools"))

# Download and install ubms
download.file("https://github.com/kenkellner/ubms/releases/download/v0.1.9/ubms_0.1.9.zip",
destfile="ubms_0.1.9.zip")
install.packages("ubms_0.1.9.zip", repos=NULL)
download.file("https://github.com/kenkellner/ubms/releases/download/v1.0.1/ubms_1.0.1.zip",
destfile="ubms_1.0.1.zip")
install.packages("ubms_1.0.1.zip", repos=NULL)
```

## Example
Expand Down

0 comments on commit 9ed06d4

Please sign in to comment.