Skip to content

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

@jeffrey-phillips

Description

@jeffrey-phillips

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions