Skip to content

Commit

Permalink
Fix duplicate density call (#187)
Browse files Browse the repository at this point in the history
* Fix duplicate density call

* NEWS and dev version
  • Loading branch information
grantmcdermott authored Aug 3, 2024
1 parent f5436fc commit b0be6d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tinyplot
Type: Package
Title: Lightweight Extension of the Base R Graphics System
Version: 0.2.0
Version: 0.2.0.99
Date: 2024-07-30
Authors@R:
c(
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ _If you are viewing this file on CRAN, please check the
[latest NEWS](https://grantmcdermott.com/tinyplot/NEWS.html) on our website
where the formatting is also better._

## 0.2.0.99 (development version)

Bug fixes:

- Fix duplicate plots produced with `type = "density"`, which was a regression
accidentally introduced in v0.2.0 (#187 @grantmcdermott)

## 0.2.0

New features:
Expand Down
1 change: 0 additions & 1 deletion R/tinyplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,6 @@ tinyplot.default = function(
if (type == "density") {
fargs = mget(ls(environment(), sorted = FALSE))
fargs = density_args(fargs = fargs, dots = dots, by_dep = by_dep)
do.call(tinyplot.density, args = fargs)
return(do.call(tinyplot.density, args = fargs))
}

Expand Down

0 comments on commit b0be6d7

Please sign in to comment.