Skip to content

Commit c4bc230

Browse files
author
Stefan Fleck
committed
reprare for release
1 parent a71d7d8 commit c4bc230

6 files changed

Lines changed: 25 additions & 17 deletions

File tree

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
33
^LICENSE\.md$
4+
^_pkgdown\.yml$
5+
^docs$

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
_pkgdown.yml
6+
docs

DESCRIPTION

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Type: Package
22
Package: lest
3-
Title: Vectorised Conditionals Similar to SQL CASE WHEN
4-
Version: 0.0.1
3+
Title: Vectorised Nested if-else Statements Similar to SQL CASE WHEN
4+
Version: 1.0.0
55
Authors@R: person("Stefan", "Fleck", email = "stefan.b.fleck@gmail.com", role = c("aut", "cre"))
66
Maintainer: Stefan Fleck <stefan.b.fleck@gmail.com>
7-
Description: This is a fork of the functions case_when and if_else from dplyr,
8-
but without any dependencies except base.
7+
Description: A fork of the functions case_when and if_else from dplyr,
8+
but without any external dependencies.
99
License: MIT + file LICENSE
1010
Encoding: UTF-8
1111
LazyData: true
1212
Suggests:
1313
testthat
14-
RoxygenNote: 6.0.1
14+
RoxygenNote: 6.1.0

LICENSE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# MIT License
22

3-
Copyright (c) 2018 Stefan Fleck
3+
Copyright (c) for portions of lest are held by RStudio and others, 2013-2015 as
4+
part of the project dplyr. All other copyright for lest are held by
5+
Stefan Fleck, 2018.
6+
47

58
Permission is hereby granted, free of charge, to any person obtaining a copy
69
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# lest
22

3-
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-blue.svg)](https://www.tidyverse.org/lifecycle/#stable)
3+
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
44

5-
lest contains forks of the dplyr functions `case_when()` and `if_else()`.
6-
`case_when()` enables you to vectorise multiple `if` and `else` statements
7-
(like the `CASE WHEN` statement in SQL). `if_else()` is a stricter and
8-
more predictable version of `base::ifelse()` that preverves attributes
9-
(and therefore works with Dates).
5+
lest contains forks of the
6+
[dplyr](https://cran.r-project.org/web/packages/dplyr/index.html) functions
7+
`if_else()` and `case_when()`. `if_else()` is a stricter and more predictable
8+
version of `base::ifelse()` that preverves attributes (and therefore works with
9+
Dates). `case_when()` enables you to vectorise multiple `if` and `else`
10+
statements (like `CASE WHEN` in SQL).
1011

1112
**lest** depends only on base, and will never add any external dependencies.
1213

@@ -16,8 +17,8 @@ Why use lest?
1617
----------------------------------
1718

1819
Use this package if you like the semantics of `dplyr::case_when()`, but do not
19-
want to use dplyr.
20-
**If you already use dplyr, it is not recommended to use lest**.
20+
want to use dplyr because of the dependencies it comes with.
21+
**If you already use dplyr in your project, you gain no advantage from lest**.
2122
`lest::case_when()` and `lest::if_else()` behave exactly identical to
2223
the dplyr equivalents, just that they do not support tidyeval syntax
2324
(like `!!!`).

man/lest-package.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)