<% add_js = function(f) { code = readLines(base64::encode(system.file("www", "_js", f, package = "pkgndep"), linebreaks= FALSE)) paste0('') } add_css = function(f) { suppressWarnings(code <- paste(readLines(system.file("www", "_css", f, package = "pkgndep")), collapse = "\n")) paste0("") } %> Dependency information for package '<%=pkg$package%>' <%= add_js("jquery.min.js") %> <%= add_js("jquery-ui.min.js") %> <%= add_js("bootstrap.min.js") %> <%= add_css("bootstrap.min.css") %> <%= add_css("jquery-ui.min.css") %> <%= add_js("pkgndep.js") %> <%= add_css("pkgndep.css") %>

Dependency information for package '<%=pkg$package%>'

Package version<%= pkg$version%>
Strong dependencies<%= pkg$n_by_strong%>
All dependencies<%= pkg$n_by_all%>
Number of parent dependencies<%= sum(pkg$which_required)%>
Gini index of parent heaviness<%= round(gini_index(pkg$heaviness[pkg$which_required] + 2), 2)%>

Dependency heatmap

<% tmp_file = tempfile(fileext = ".svg") plot(pkg, file = tmp_file) %> <%= paste0(readLines(tmp_file), collapse = "\n")%> <% file.remove(tmp_file) %>


Parent dependency table

<% if(n_total > 0) { %>

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

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

<% 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'")) html_tb = gsub("(]*?> Suggests \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1Namespace is not imported.\n", html_tb) html_tb = gsub("(]*?> Enhances \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1Namespace is not imported.\n", html_tb) html_tb = gsub("(]*?> Depends \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1The whole namespace is imported.\n", html_tb) html_tb = gsub("(]*?> Depends \\s+)]*?> -(\\d+) \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1The whole namespace excluding \\2 objects is imported.\n", html_tb) html_tb = gsub("(]*?> Depends \\s+)]*?> -Inf \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1Package is listed in 'Depends' but no object from the namespace is imported.\n", html_tb) html_tb = gsub("(]*?> Imports \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1The whole namespace is imported.\n", html_tb) html_tb = gsub("(]*?> Imports \\s+)]*?> -(\\d+) \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1The whole namespace excluding \\2 objects is imported.\n", html_tb) html_tb = gsub("(]*?> Imports \\s+)]*?> -Inf \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1Package is listed in 'Imports' but no object from the namespace is imported.\n", html_tb) html_tb = gsub("(]*?> LinkingTo \\s+)]*?> 0 \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1The whole namespace is imported.\n", html_tb) html_tb = gsub("(]*?> LinkingTo \\s+)]*?> -(\\d+) \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1The whole namespace excluding \\2 objects is imported.\n", html_tb) html_tb = gsub("(]*?> LinkingTo \\s+)]*?> -Inf \\s+]*?> 0 \\s+]*?> 0 \\s+", "\\1Package is listed in 'Imports' but no object from the namespace is imported.\n", html_tb) %> <%= html_tb %> <% } else { %>

No dependency found

<% } %>

Analysis was done with pkgndep.