brainconn
brainconn copied to clipboard
Vignettes not installed, No layout function defined for objects of class <matrix>
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
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 classRun rlang::last_trace()
to see where the error occurred. rlang::last_trace() <error/rlang_error> Error inhandlers[[1L]]()
: ! No layout function defined for objects of class
Backtrace: ▆
- ├─brainconn::brainconn(...)
- │ └─brainconn:::build_plot(...)
- │ ├─ggraph::create_layout(graph = conmat, layout = "stress", circular = TRUE)
- │ └─ggraph:::create_layout.default(...)
- │ ├─rlang::try_fetch(...)
- │ │ ├─base::tryCatch(...)
- │ │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
- │ │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
- │ │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
- │ │ └─base::withCallingHandlers(...)
- │ ├─tidygraph::as_tbl_graph(graph)
- │ └─tidygraph:::as_tbl_graph.matrix(graph)
- │ └─tidygraph:::guess_matrix_type(x)
- └─base::.handleSimpleError(...)
- └─rlang (local) h(simpleError(msg, call))
-
└─handlers[[1L]](cnd)