Skip to content

Commit 9b5e097

Browse files
committed
Merge branch 'master' of github.com:hadley/ggplot2
2 parents 50131fa + 13a4922 commit 9b5e097

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Bug fixes and minor improvements
44

5+
* Removed a superfluous comma in `theme-defaults.r` code (@jschoeley)
6+
57
* Fixed a compatibility issue with `ggproto` and R versions prior to 3.1.2.
68
(#1444)
79

R/stat-function.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ StatFunction <- ggproto("StatFunction", Stat,
8282

8383
data.frame(
8484
x = xseq,
85-
y = do.call(fun, c(list(quote(scales$x$trans$inv(xseq))), args))
85+
y = do.call(fun, c(list(quote(scales$x$trans$inverse(xseq))), args))
8686
)
8787
}
8888
)

R/theme-defaults.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ theme_grey <- function(base_size = 11, base_family = "") {
8686
),
8787
axis.title.y = element_text(
8888
angle = 90,
89-
margin = margin(r = 0.8 * half_line, l = 0.8 * half_line / 2),
89+
margin = margin(r = 0.8 * half_line, l = 0.8 * half_line / 2)
9090
),
9191

9292
legend.background = element_rect(colour = NA),

ggplot2.Rproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ StripTrailingWhitespace: Yes
1717

1818
BuildType: Package
1919
PackageUseDevtools: Yes
20-
PackageInstallArgs: --no-multiarch --with-keep.source
20+
PackageInstallArgs: --no-multiarch --with-keep.source --run-donttest
2121
PackageRoxygenize: rd,collate,namespace

tests/testthat/test-stat-bin2d.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ test_that("binwidth is respected", {
88
out <- layer_data(base)
99
expect_equal(nrow(out), 2)
1010
# Adjust tolerance to account for fuzzy breaks adjustment
11-
expect_equal(out$xmin, c(1, 1.75), tol = 1e-7)
12-
expect_equal(out$xmax, c(1.25, 2), tol = 1e-7)
11+
expect_equal(out$xmin, c(1, 1.75), tolerance = 1e-7)
12+
expect_equal(out$xmax, c(1.25, 2), tolerance = 1e-7)
1313
})
1414

1515
test_that("breaks override binwidth", {

0 commit comments

Comments
 (0)