Skip to content

Commit

Permalink
fixed unknown error
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Jan 16, 2024
1 parent fcf4651 commit e1f4051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/layout_stress.R
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ layout_with_fixed_coords <- function(g, coords, weights = NA,
if (missing(coords)) {
stop('"coords" is missing with no default.')
}
if (nrow(xy) != vcount(g) && ncol(xy) != 2) {
if (nrow(coords) != igraph::vcount(g) && ncol(coords) != 2) {
stop("coords has the wrong dimensions")
}
if (all(!is.na(coords))) {
Expand Down

0 comments on commit e1f4051

Please sign in to comment.