Skip to content

Commit

Permalink
update README install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rpruim committed Jun 26, 2018
1 parent d3fe896 commit a94fc0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
Binary file added README-unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 6 additions & 11 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ by Randall Pruim.

## Installation

You can install fastR2 from github with:
The package can be installed from CRAN via
```{r cran-installation, eval = FALSE}
install.packages("fastR2")
```

or from github via

```{r gh-installation, eval = FALSE}
# install.packages("devtools")
Expand All @@ -36,16 +41,6 @@ devtools::install_github("rpruim/fastR2")

<!-- [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fastR2)](https://cran.r-project.org/package=fastR2) -->

### Installation

The package can be installed from CRAN via
```{r eval=FALSE}
install.packages("fastR2")
```
or from github
```{r eval=FALSE}
devtools::install_github("rpruim/fastR2")
```

### Snippets

Expand Down
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,20 @@ This package contains data sets and some utility functions to support [*Foundati
Installation
------------

You can install fastR2 from github with:

``` r
# install.packages("devtools")
devtools::install_github("rpruim/fastR2")
```

<!-- [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fastR2)](https://cran.r-project.org/package=fastR2) -->
### Installation

The package can be installed from CRAN via

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

or from github
or from github via

``` r
# install.packages("devtools")
devtools::install_github("rpruim/fastR2")
```

<!-- [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fastR2)](https://cran.r-project.org/package=fastR2) -->
### Snippets

In addtion to data sets, `fastR2` contains a `snippet()` function that loads and executes code found in the text. Here is an example:
Expand All @@ -44,4 +36,4 @@ snippet("histogram01")
#> > gf_histogram( ~ Sepal.Length, data = iris)
```

<img src="README-unnamed-chunk-4-1.png" style="display: block; margin: auto;" />
<img src="README-unnamed-chunk-2-1.png" style="display: block; margin: auto;" />

0 comments on commit a94fc0b

Please sign in to comment.