Skip to content

Commit 47ccf8a

Browse files
committed
Compare with all.equal()
Try to fix error on Linux
1 parent 798961d commit 47ccf8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/triangle_of_fractions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ triangle_of_fractions <- function(
2020
fractions, fractions_2 = NULL, cols = c("blue", "red", "darkgreen")
2121
)
2222
{
23-
stopifnot(sum(fractions) == 1)
23+
stopifnot(all.equal(sum(fractions), 1))
2424

2525
fractions_to_colour <- function(x) {
2626
if (!is.null(x)) {

0 commit comments

Comments
 (0)