<% if(n_total > 0) { %> <% if(grepl("(bioc|books|annotation|experiment|workflow)", pkg$repository)) { namespace_link = paste0("https://code.bioconductor.org/browse/", pkg$package, "/blob/master/NAMESPACE") } else if(pkg$package %in% BASE_PKGS) { namespace_link = paste0("https://github.com/wch/r-source/blob/trunk/src/library/", pkg$package, "/NAMESPACE") } else { namespace_link = paste0("https://github.com/cran/", pkg$package, "/blob/master/NAMESPACE") } %>

"Import" information is from the NAMESPACE file of <%=pkg$package%>.

imports: number of imported functions/objects; importMethods: number of imported S4 methods; importClasses: number of imported S4 classes.

Required packages: number of strong dependency packages for each of the parent package (or in other words, number of dependency packages the parent package brings in).

Heaviness from parent on <%=pkg$package%>: number of required packages that can be reduced if moving parent package to Suggests of <%=pkg$package%>.

<% tb[, 1] = qq("@{tb[, 1]}", collapse = FALSE) html_tb = as.character(knitr::kable(tb, format = "html", row.names = FALSE, escape = FALSE, col.names = c("Parent package", "Field", "imports", "importMethods", "importClasses", "Required packages", qq("Heaviness from parent on @{pkg$package}")), table.attr = "class='table table-striped' id='parent-dependency'", align = c("l", rep("r", ncol(tb) - 1)))) html_tb = gsub("(]*?> Suggests \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1No object is imported into the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> Enhances \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1No object is imported into the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> Depends \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1The whole set of functions/methods/classes from parent package is imported to the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> Depends \\s+)]*?> -(\\d+) \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1The whole set of functions/methods/classes from parent package excluding \\2 objects is imported to the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> Depends \\s+)]*?> -Inf \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1Parent package is listed in Depends of @{pkg$package} but no object from parent package is imported.\n"), html_tb) html_tb = gsub("(]*?> Imports \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1The whole set of functions/methods/classes from parent package is imported to the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> Imports \\s+)]*?> -(\\d+) \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1The whole set of functions/methods/classes from parent package excluding \\2 objects is imported to the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> Imports \\s+)]*?> -Inf \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1Parent package is listed in Imports of @{pkg$package} but no object from parent package is imported.\n"), html_tb) html_tb = gsub("(]*?> LinkingTo \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1No object is imported into the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> LinkingTo \\s+)]*?> -(\\d+) \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1The whole set of functions/methods/classes from parent package excluding \\2 objects is imported to the namespace of @{pkg$package}.\n"), html_tb) html_tb = gsub("(]*?> LinkingTo \\s+)]*?> -Inf \\s+]*?> 0 \\s+]*?> 0 \\s+", qq("\\1Parent package is listed in LinkingTo of @{pkg$package} but no object from parent package is imported.\n"), html_tb) %> <%= html_tb %> <% nr = n_total if(nr > records_per_page) { %> <%= page_select2(page, ceiling(nr/records_per_page), "parent_dependency", pkg$package) %> <% } %> <% } else { %>

No dependency found.

<% } %>