-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix Travis failures on r-devel #3163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
e9b8ff7
7f1c39b
1b5f10b
a53e2f9
5b740fe
425bafc
43b0e61
387ad72
0db9a69
800b29e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -563,7 +563,7 @@ continuous_scale <- function(aesthetics, scale_name, palette, name = waiver(), | |
|
||
position <- match.arg(position, c("left", "right", "top", "bottom")) | ||
|
||
if (is.null(breaks) && !is_position_aes(aesthetics) && guide != "none") { | ||
if (is.null(breaks) && all(is_position_aes(aesthetics)) && identical(guide, "none")) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm confused here. Doesn't this invert the logic for the last two checks? Wouldn't they need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opps..., sorry, I'm also confused because the previous logic seems unclear to me about its intension. Let me think. (I believe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
guide <- "none" | ||
} | ||
|
||
|
@@ -634,7 +634,7 @@ discrete_scale <- function(aesthetics, scale_name, palette, name = waiver(), | |
|
||
position <- match.arg(position, c("left", "right", "top", "bottom")) | ||
|
||
if (is.null(breaks) && !is_position_aes(aesthetics) && guide != "none") { | ||
if (is.null(breaks) && all(is_position_aes(aesthetics)) && identical(guide, "none")) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as previous. Inverted logic? |
||
guide <- "none" | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -475,3 +475,6 @@ parse_safe <- function(text) { | |
} | ||
out | ||
} | ||
|
||
# For older version of R | ||
isFALSE <- function(x) is.logical(x) && length(x) == 1L && !is.na(x) && !x | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be in backports.R and have a version check? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, it seems the right place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
length(matched)
get an explicit comparison, likelength(matched) > 0
(I assume that's what is meant)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, thanks.