particles
particles copied to clipboard
Warning in `velocity_constraint`
Wit new R Versions (>= 4.2.0), the method
apply_constraint.velocity_constraint
causes the warning:
In min_constrained || max_constrained : 'length(x) = 13 > 1' in coercion to 'logical(1)'
The cause is a new handling of logical expression containing &&
or ||
. A warning is returned if at least one of the left or right argument has a length > 1.
Minimal example to trigger the warning:
a <- c(0,1)
b <- c(2,0)
a > b | a > 0
a > b || a > 0