diff --git a/README-unnamed-chunk-2-1.png b/README-unnamed-chunk-2-1.png new file mode 100644 index 0000000..a163199 Binary files /dev/null and b/README-unnamed-chunk-2-1.png differ diff --git a/README.Rmd b/README.Rmd index 7d42362..7409e36 100644 --- a/README.Rmd +++ b/README.Rmd @@ -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") @@ -36,16 +41,6 @@ devtools::install_github("rpruim/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 diff --git a/README.md b/README.md index e24f6b5..d19fcee 100644 --- a/README.md +++ b/README.md @@ -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") -``` - - -### 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") ``` + ### Snippets In addtion to data sets, `fastR2` contains a `snippet()` function that loads and executes code found in the text. Here is an example: @@ -44,4 +36,4 @@ snippet("histogram01") #> > gf_histogram( ~ Sepal.Length, data = iris) ``` - +