Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does assertHE identify functions created inside of other functions #103

Open
RobertASmith opened this issue Sep 15, 2024 · 1 comment
Open
Assignees

Comments

@RobertASmith
Copy link
Contributor

Reviewer question on this edge case, which I have definitely seen a number of times in the model.

Do we have a unit test for this?

foo1 <-
  function(x) {
    
    foo2 <- function(y, x) {
      x + y
    }
    
    foo2(x = x, y = 12)
  }


foo1(x = 10)
@RobertASmith RobertASmith changed the title Create extra example to test Does assertHE identify functions created inside of other functions Sep 15, 2024
@Smit-tay
Copy link
Collaborator

The question appears to be:

Do we detect nested function definitions ?
If so, how are they handled ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants