Skip to content

Commit

Permalink
Removed CRAN badge. It is not going to be a package on CRAN.
Browse files Browse the repository at this point in the history
  • Loading branch information
mailund committed Mar 9, 2018
1 parent ab0648f commit 3f5e0f0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Expand Up @@ -12,8 +12,6 @@ Status](https://img.shields.io/codecov/c/github/mailund/lc/master.svg)](https://
[![Coverage
Status](https://coveralls.io/repos/github/mailund/lc/badge.svg?branch=master)](https://coveralls.io/github/mailund/lc?branch=master)
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![CRAN
status](http://www.r-pkg.org/badges/version/lc)](https://cran.r-project.org/package=lc)

The goal of `lc` is to implement Haskell- and Python-like list
comprehension in R. List comprehensions provide a syntax for mapping and
Expand All @@ -31,6 +29,12 @@ install.packages("devtools")
devtools::install_github("mailund/lc")
```

or from CRAN using

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

## Examples

### Quick-sort
Expand All @@ -56,7 +60,7 @@ qsort <- function(lst) {
}

(lst <- sample(1:10))
#> [1] 5 4 6 1 9 2 3 7 8 10
#> [1] 1 4 3 8 5 6 7 9 10 2
unlist(qsort(lst))
#> [1] 1 2 3 4 5 6 7 8 9 10
```
Expand All @@ -77,7 +81,7 @@ qsort <- function(lst) {
}

(lst <- sample(1:10))
#> [1] 7 6 8 4 3 1 10 9 5 2
#> [1] 6 5 3 7 2 8 1 9 10 4
unlist(qsort(lst))
#> [1] 1 2 3 4 5 6 7 8 9 10
```
Expand Down

0 comments on commit 3f5e0f0

Please sign in to comment.