We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 798961d commit 47ccf8aCopy full SHA for 47ccf8a
1 file changed
R/triangle_of_fractions.R
@@ -20,7 +20,7 @@ triangle_of_fractions <- function(
20
fractions, fractions_2 = NULL, cols = c("blue", "red", "darkgreen")
21
)
22
{
23
- stopifnot(sum(fractions) == 1)
+ stopifnot(all.equal(sum(fractions), 1))
24
25
fractions_to_colour <- function(x) {
26
if (!is.null(x)) {
0 commit comments