8000 `foodweb()` cannot differentiate identically-named functions and variables · Issue #2 · lewinfox/foodwebr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
foodweb() cannot differentiate identically-named functions and variables #2
Open
@lewinfox

Description

@lewinfox

If a variable in a function has the same name as another function, a link will be erroneously created.

f1 <- function() {
  1
}

f2 <- function() {
  f1 <- 10 # This variable `f1` will be confused with the function `f1()`
  2
}

# The foodweb mistakenly believes that function `f2()` calls function `f1()`
foodweb()
#> # A `foodweb`: 2 nodes and 1 edges
#> digraph 'foodweb' {
#>   f1()
#>   f2() -> { f1() }
#> }

We need to differentiate between the symbol f1 and the call f1().

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0