Skip to content

Bug: replace_symbol_in_expr() fails if the expression contains NA #490

@bundfussr

Description

@bundfussr

What happened?

replace_symbol_in_expr() fails if the expression contains NA.

Session Information

No response

Reproducible Example

> replace_symbol_in_expr(expr(if_else(AVAL > 0, AVAL, NA)), !!expr(AVAL), !!expr(AVAL.join))
Error in if (expression[[i]] == target) { : 
  missing value where TRUE/FALSE needed

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Archive

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions