You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may have mentioned this before but it is quite disturbing that when writing ifs without optional brackets coverage is overestimated. Is this a bug? Thanks
This is the same as #39. The problem is R considers an if else statement without brackets as one entire expression. There is only one source ref for the entire thing. As source refs are what we use to determine what expressions to track it causes the issue you observed.
We would have to manually break the expression into parts and insert an artificial srcref for each part to fix this.
Considering there exists an easy user side fix (just use brackets) I have not spent time handling this case, but as multiple people have reported it I suppose it needs to be done.
You may have mentioned this before but it is quite disturbing that when writing ifs without optional brackets coverage is overestimated. Is this a bug? Thanks
The text was updated successfully, but these errors were encountered: