Dependency analysis on package <%=pkg$package%>

General information

<% if(grepl("bioconductor", pkg$repository)) { %> <% } else { %> <% } %>
Bioconductor link link
CRAN link link
Package version<%= pkg$version%>
Number of strong dependencies<%= df[pkg$package, "n_by_strong"]%>
Number of all dependencies<%= df[pkg$package, "n_by_all"]%>

Heaviness from parent packages

<% m = co_heaviness(pkg) diag(m) = -Inf if(nrow(m) >= 2) { if(max(m) > 0) { ind = which(m == max(m), arr.ind = TRUE) rn = rownames(m) %> <% } } %>
Number of parent packages<%= df[pkg$package, "n_parents"]%>
Number of all parent packages (including Suggests and Enhances)<%= length(pkg$heaviness) %>
Max heaviness from parent packages<%= if(any(pkg$which_required)) max(pkg$heaviness[pkg$which_required]) else 0 %>
Total heaviness from parent packages<%= if(any(pkg$which_required)) sum(pkg$heaviness[pkg$which_required]) else 0 %>
Max co-heaviness from parent packages ("<%=rn[ind[1, 1]]%>" and "<%=rn[ind[1, 2]]%>")<%= max(m) %>

Heaviness on child and downstream packages

Number of child packages<%= df[pkg$package, "n_children"]%>
Heaviness on child packages<%= round(df[pkg$package, "heaviness_on_children"], 1)%>
Number of downstream packages<%= df[pkg$package, "n_downstream"]%>
Heaviness on downstream packages ?<%= round(df[pkg$package, "heaviness_on_downstream"], 1)%>
Number of indirect downstream packages (excluding child packages)<%= df[pkg$package, "n_indirect_downstream"]%>
Heaviness on indirect downstream packages (excluding child packages)<%= round(df[pkg$package, "heaviness_on_indirect_downstream"], 1)%>
Total heaviness on downsteam packages<%= round(df[pkg$package, "n_downstream"]*df[pkg$package, "heaviness_on_downstream"]) %>

Dependency heatmap

In the following dependency heatmap, rows are the parent packages of <%=pkg$package%> and columns are the dependency packages that each parent package brings in. On the right side of the heatmap, there are three barplot annotations: 1. number of imported functions/S4 methods/S4 classes from parent packages; 2. number of dependency packages from each parent package; 3. heaviness of each parent package on <%=pkg$package%>.

The dependency heatmap can be generated by x = pkgndep('<%=pkg$package%>'); plot(x).

Adjust heatmap size:
<% tmp_file = paste0(env$figure_dir, "/", pkg$package, "_dependency_heatmap.svg") if(!file.exists(tmp_file)) { plot(pkg, file = tmp_file) } %> <%= paste0(readLines(tmp_file), collapse = "\n")%>


Dependency tables

Loading content...

Loading content...

Loading content...

Loading content...