networkD3 icon indicating copy to clipboard operation
networkD3 copied to clipboard

Fix use of `check_zero()` in `forceNetwork()` and `sankeyNetwork()`

Open lewinfox opened this issue 4 years ago • 0 comments

Fixes #281

Calling check_zero() too early in the function resulted in a bug where 1-indexed input would not be detected if either:

  • Links was not a data.frame
  • Source or Target were missing

Moving check_zero() further down the functions and adding missing input checks for forceNetwork() fixes the issue.

lewinfox avatar Apr 10 '21 02:04 lewinfox