briatte / ggnetwork

Geoms to plot networks with ggplot2
https://briatte.github.io/ggnetwork/
146 stars 28 forks source link

Packages taking forever to load #30

Closed ghost closed 5 years ago

ghost commented 6 years ago

Problem description

I am using the latest version of ggnetwork. I can load the package just fine: library(ggnetwork)

However, when I use the ggnetwork() function for the first time in a session, it takes around 5 minutes to run. Subsequent function calls are very fast. It's just the initial call that is mind numbingly slow.

I think there must be a problem loading packages, but I'm not sure where to begin. I will paste the warning messages I receive below. If you can help out or offer any suggestions I would appreciate it.

Output BEFORE the code stalls:

Loading tidyverse: readr
Loading tidyverse: purrr
Loading tidyverse: dplyr
Conflicts with tidy packages ---------------------------------------------------
accumulate():    purrr, foreach
arrange():       dplyr, Seurat
as_data_frame(): dplyr, tibble, igraph
between():       dplyr, data.table
col_factor():    readr, scales
col_numeric():   readr, scales
compose():       purrr, igraph
crossing():      tidyr, igraph
discard():       purrr, scales
expand():        tidyr, Matrix
filter():        dplyr, stats
first():         dplyr, data.table
ggsave():        ggplot2, cowplot
groups():        dplyr, igraph
lag():           dplyr, stats
last():          dplyr, data.table
simplify():      purrr, igraph
transpose():     purrr, data.table
when():          purrr, foreach

Wait 5 minutes here…

Output AFTER the code starts running again:

Loading required package: sna
Loading required package: statnet.common
Loading required package: network
network: Classes for Relational Data
Version 1.13.0 created on 2015-08-31.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
                    Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Martina Morris, University of Washington
                    Skye Bender-deMoll, University of Washington
 For citation information, type citation("network").
 Type help("network-package") to get started.

Attaching package: 'network'

The following objects are masked from 'package:igraph':

    %c%, %s%, add.edges, add.vertices, delete.edges, delete.vertices,
    get.edge.attribute, get.edges, get.vertex.attribute, is.bipartite,
    is.directed, list.edge.attributes, list.vertex.attributes,
    set.edge.attribute, set.vertex.attribute

sna: Tools for Social Network Analysis
Version 2.4 created on 2016-07-23.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
 For citation information, type citation("sna").
 Type help(package="sna") to get started.

Attaching package: 'sna'

The following objects are masked from 'package:igraph':

    betweenness, bonpow, closeness, components, degree, dyad.census,
    evcent, hierarchy, is.connected, neighborhood, triad.census
briatte commented 5 years ago

Hi @ghost

Thanks for reporting this, and apologies for the slow reply.

Are you still having this issue, and if so, could you please post your code and session info? The order in which you are loading the packages might be at fault, but most likely, you were facing another issue related to your platform or to some package that will have been updated since.

Closing, will reopen if need be.