ggdag icon indicating copy to clipboard operation
ggdag copied to clipboard

DAGs with no edges fail

Open malcolmbarrett opened this issue 7 months ago • 0 comments

Per an accidental finding from CRAN tests, DAGs without edges fail. Kicking the can down the road for the CRAN version but will do this before the next release.

dagitty::dagitty("dag {
  x1
  x2
  x3
  x4
  x5
}") |> ggdag::tidy_dagitty()
#> Error in `dplyr::select()`:
#> ! Can't select columns that don't exist.
#> ✖ Column `x` doesn't exist.

Created on 2024-07-21 with reprex v2.1.0

malcolmbarrett avatar Jul 21 '24 17:07 malcolmbarrett