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

Vignettes not installed, No layout function defined for objects of class <matrix> #31

Open
jeffrey-phillips opened this issue Oct 30, 2023 · 0 comments

Comments

@jeffrey-phillips
Copy link

Hey folks--I've just installed brainconn from Github on MacOS 13.6.1 with R 4.3.1. However, it seems like the vignettes directory is absent from the installed directory, and 'vignettes("brainconn")' yields a warning that the vignette was not found.

Not sure if related or not, but running an example command from the vignette produces the error "No layout function defined for objects of class ". Please see below for input and backtrace.

I have just upgraded from Catalina to Ventura, with new R and RStudio installations. I believe all dependencies are present and freshly installed, but I mention it in case it's helpful context.

Thanks,

Jeff

library(brainconn)
Loading required package: ggraph
Loading required package: ggplot2
x <- example_unweighted_undirected
brainconn(atlas ="schaefer300_n7", conmat=x, node.size = 3, view="ortho")
Error in handlers[[1L]]():
! No layout function defined for objects of class

Run `rlang::last_trace()` to see where the error occurred. > rlang::last_trace() Error in `handlers[[1L]]()`: ! No layout function defined for objects of class --- Backtrace: ▆ 1. ├─brainconn::brainconn(...) 2. │ └─brainconn:::build_plot(...) 3. │ ├─ggraph::create_layout(graph = conmat, layout = "stress", circular = TRUE) 4. │ └─ggraph:::create_layout.default(...) 5. │ ├─rlang::try_fetch(...) 6. │ │ ├─base::tryCatch(...) 7. │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 8. │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 9. │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 10. │ │ └─base::withCallingHandlers(...) 11. │ ├─tidygraph::as_tbl_graph(graph) 12. │ └─tidygraph:::as_tbl_graph.matrix(graph) 13. │ └─tidygraph:::guess_matrix_type(x) 14. └─base::.handleSimpleError(...) 15. └─rlang (local) h(simpleError(msg, call)) 16. └─handlers[[1L]](cnd)
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