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

sc_edge fails on single row sf #40

Closed
mdsumner opened this issue Dec 18, 2017 · 2 comments
Closed

sc_edge fails on single row sf #40

mdsumner opened this issue Dec 18, 2017 · 2 comments

Comments

@mdsumner
Copy link
Member

mdsumner commented Dec 18, 2017

From @mdsumner on December 18, 2017 12:12

sc_edge(nc[1, ])


## causes anglr to fail
anglr(nc[1, ])
 Error in `[[<-.data.frame`(`*tmp*`, "path_", value = c("3f24a604", "3f24a604",  : 
  replacement has 26 rows, data has 0 

Copied from original issue: hypertidy/anglr#58

@mdsumner mdsumner changed the title anglr fails on single row sf sc_edge fails on single row sf Dec 18, 2017
@mdsumner
Copy link
Member Author

Doesn't fail here

sc_edge(minimal_mesh[1, ])

but it does for this, so is it only when there's a single path?

sc_edge(minimal_mesh[2, ])

@mdsumner
Copy link
Member Author

Fix applied in sc_segment 397f269

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

1 participant