html_text_vec()
, get_dep_str()
and get_dep_vec()
removed to minimise the errors due to no internet connection and/or timeout.For the vignette on dependencies of all CRAN packages, community detection is added.
Replace https://cran.r-project.org/web/packages/available_packages_by_name.html by https://cran.r-project.org, in the dependency network vignette, to prevent NOTE on possibly invalid URL.
Added is a citation network of the CHI conference papers, that can serve as a comparison to the CRAN dependency network, in terms of network summaries and characteristics, such as degree distribution.
Replace https://cran.r-project.org/web/packages/available_packages_by_name.html by https://cran.r-project.org, in the manual of cran_dependencies
, to prevent NOTE on possibly invalid URL.
get_dep_all_packages()
and get_graph_all_packages()
: The former is for a data frame of all dependencies of all CRAN packages, while the latter is for the graph of one type of depenedencies of all CRAN packages.
get_dep()
replaces get_dep_all()
, with the same functionality. get_dep()
gets soft deprecated.
The argument type
in get_dep()
and types
in get_dep_df()
allows input more flexibility. For reverse dependencies, either space or underscore is accepted for separating the words e.g. type = "reverse suggests"
or type = "reverse_suggests"
.
The argument types
in get_dep_df()
allows (as before) a character vector of dependency words. Also allowed now is types = "all"
which means all of the four dependencies (depends, suggests, imports, linking to) and their reverse counterparts.
Previously, there were issues with string manipulation for some packages without scraping. This is because, when using tools::CRAN_package_db()
, there might be no space between the package name and the left parenthesis for the version. This is not an issue if scrape = TRUE
as there is always a space on the CRAN page.
In the output of get_dep_df()
and get_dep_all_packages()
, any LinkingTo
and Reverse linking to
dependencies will become “linking to” (“linking_to” previously) in the variable type
, with “FALSE” and “TRUE” in the variable reverse
, respectively. This is also updated in the data cran_dependencies
.
The sections on obtaining dependencies of all CRAN packages is now moved to a new vignette. In this vignette, we also provide interactive visualisation of the network of Depends
of all packages.
The degree modelling vignette is now for Imports
network, not Depends
network. In addition to discrete power law, a discrete extreme value mixture distribution is also used to model the same data set.
dupp()
and Supp()
: density and survival functions, respectively, of the discrete power law (above a threshold).mcmc_upp()
: fitting the discrete power law (above a threshold) to data using Markov chain Monte Carlo (MCMC).dmix()
, Smix()
: density and survival functions, respectively, of a discrete extreme value mixture distribution.mcmc_mix()
: fitting the discrete extreme value mixture distribution to data using MCMC.get_dep_all()
and get_dep_df()
: scrape = TRUE
is the same as previous version, while scrape = FALSE
means tools::CRAN_package_db()
(thanks to Dirk Eddelbuettel (#1)) will be used instead. Note that changing this argument should still give the same result; the main difference is the time taken.