Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Report the operator the user wrote for %/% and %% on an Interval
%/%for (Duration, Interval) and (Period, Interval) in R/ops-integer-division.r dispatches totrunc_divide(), which computestrunc(e1 / e2)./for those signatures is a stop-only method in R/ops-division.r, so the error blames an operator the user never wrote:%%for (Period, Interval) in R/ops-modulo.r goes throughmodulo_period_by_period(), which calls%/%and lands on the same message:Treat NA entries as not discontinuous in setdiff()
setdiff.Interval()in R/intervals.r computesmakes2 <- !aligned & insideand then runsif (sum(makes2)). AnyNAinxoryturnsinsideintoNA, and theif()fails:Use the calendar year for February lengths in .int_to_period()
.int_to_period()in R/coercion.r convertsendto POSIXlt and passesend$yearto.days_in_month()at two sites. POSIXlt stores years since 1900, and.days_in_month()(R/accessors-month.r) callsleap_year()on an absolute year, so February gets the wrong length in years where the two disagree. For 2000 it receives 100:leap_year(100)isFALSE,leap_year(2000)isTRUE. For 1900 it receives 0, which the rule counts as a leap year while 1900 is not.Found during my most recent ry audit.