crandep0.3.13 package

Network Analysis of Dependencies of CRAN Packages

check_dep_word

Check and convert dependency word(s)

conditional_change

Conditionally change a string

df_to_graph

Construct the giant component of the network from two data frames

dmix2

Probability mass function (PMF) of 2-component discrete extreme value ...

dmix3

Probability mass function (PMF) of 3-component discrete extreme value ...

dpol

Probability mass function (PMF) of Zipf-polylog distribution

get_dep_all_packages

Dependencies of all CRAN packages

get_dep_vec

Split a string to a list of dependencies

get_dep

Multiple types of dependencies

get_graph_all_packages

Graph of dependencies of all CRAN packages

lpost_bulk_wrapper

Wrapper of lpost_bulk, assuming power law (theta = 1.0)

lpost_mix2_constrained

Wrapper of lpost_mix2, assuming power law (theta = 1.0) & contrained (...

lpost_pol_wrapper

Wrapper of lpost_pol, assuming power law (theta = 1.0)

lpost_pow

Unnormalised log-posterior density of discrete power law

marg_pow

Marginal log-likelihood and posterior density of discrete power law vi...

mcmc_mix1_wrapper

Wrapper of mcmc_mix1

mcmc_mix1

Markov chain Monte Carlo for TZP-power-law mixture

mcmc_mix2_wrapper

Wrapper of mcmc_mix2

mcmc_mix2

Markov chain Monte Carlo for 2-component discrete extreme value mixtur...

mcmc_mix3_wrapper

Wrapper of mcmc_mix3

mcmc_mix3

Markov chain Monte Carlo for 3-component discrete extreme value mixtur...

mcmc_pol_wrapper

Wrapper of mcmc_pol

mcmc_pol

Markov chain Monte Carlo for Zipf-polylog distribution

obtain_u_set_mix1

Obtain set of thresholds with high posterior density for the TZP-power...

obtain_u_set_mix2_constrained

Obtain set of thresholds with high posterior density for the constrain...

obtain_u_set_mix2

Obtain set of thresholds with high posterior density for the 2-compone...

obtain_u_set_mix3

Obtain set of thresholds with high posterior density for the 3-compone...

reshape_dep

Reshape the data frame of dependencies

Smix2

Survival function of 2-component discrete extreme value mixture distri...

Smix3

Survival function of 3-component discrete extreme value mixture distri...

Spol

Survival function of Zipf-polylog distribution

The dependencies of CRAN packages can be analysed in a network fashion. For each package we can obtain the packages that it depends, imports, suggests, etc. By iterating this procedure over a number of packages, we can build, visualise, and analyse the dependency network, enabling us to have a bird's-eye view of the CRAN ecosystem. One aspect of interest is the number of reverse dependencies of the packages, or equivalently the in-degree distribution of the dependency network. This can be fitted by the power law and/or an extreme value mixture distribution <doi:10.1111/stan.12355>, of which functions are provided.

  • Maintainer: Clement Lee
  • License: GPL (>= 2)
  • Last published: 2025-06-16