Skip to content

Commit 7860a74

Browse files
\(x) -> function(x) (#416)
1 parent 42dede7 commit 7860a74

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Description: Lightweight extension of the base R graphics system, with support
3838
License: Apache License (>= 2)
3939
Remotes: etiennebacher/altdoc
4040
Depends:
41-
R (>= 4.1.0)
41+
R (>= 4.0.0)
4242
Imports:
4343
graphics,
4444
grDevices,

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ where the formatting is also better._
99
### Bug fixes
1010

1111
- Fix a narrow `tinytheme("ridge")` regression that was accidentally introduced in
12-
v0.4.0, which was causing a palette mismatch for gradient legends. (#415 @grantmcdermott)
12+
v0.4.0, which was causing a palette mismatch for gradient legends. (#415 @grantmcdermott)
13+
14+
### Misc
15+
16+
- Revert minimum compatible R version to 4.0.0 (#416 @grantmcdermott)
1317

1418
## 0.4.0
1519

R/type_function.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
#' ))
2929
#'
3030
#' # Custom function example
31-
#' # (Here using the `\()` anonymous function syntax introduced in R 4.1.0)
32-
#' tinyplot(x = -4:4, type = type_function(fun = \(x) 0.5 * exp(-abs(x))))
31+
#' ## (Here using `function(x)`, but you could also use the shorter `\(x)`
32+
#' ## anonymous function syntax introduced in R 4.1.0)
33+
#' tinyplot(x = -4:4, type = type_function(fun = function(x) 0.5 * exp(-abs(x))))
3334
#'
3435
#' @export
3536
type_function = function(fun = dnorm, args = list(), n = 101, ...) {

man/tinyplot-package.Rd

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

man/type_function.Rd

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

0 commit comments

Comments
 (0)