2DegreesInvesting / tiltIndicator

Implement the core business logic of the tilt indicators
https://2degreesinvesting.github.io/tiltIndicator/
GNU General Public License v3.0
1 stars 1 forks source link

Error in `if (!matches_name(data, pattern))` {: the condition has length > 1 #762

Closed maurolepore closed 5 months ago

maurolepore commented 5 months ago
tiltIndicator:::check_matches_name(data.frame(x = 1, xx = 1), c("x"))
#> Error in if (!matches_name(data, pattern)) {: the condition has length > 1

Created on 2024-04-18 with reprex v2.1.0

Replace with

if (!any(matches_name(data, pattern))) ...