Showing 1 of 3 files from the diff.
Other files ignored by Codecov

@@ -749,3 +749,33 @@
Loading
749 749
DESCRIPTIONFileDepsV <- Vectorize(DESCRIPTIONFileDeps, vectorize.args = "desc_path", 
750 750
                                  SIMPLIFY = FALSE)
751 751
752 +
#' Package dependencies when one or more packages removed
753 +
#' 
754 +
#' This is primarily for package developers. It allows the testing
755 +
#' of what the recursive dependencies would be if a package was removed
756 +
#' from the immediate dependencies.
757 +
#' @param pkg A package name to be testing the dependencies
758 +
#' @param depsRemoved A vector of package names who are to be "removed"
759 +
#'   from the \code{pkg} immediate dependencies
760 +
#' @export
761 +
#' @return 
762 +
#' A character vector of the packages that would removed from recursive dependencies 
763 +
#' of \code{pkg}
764 +
#' if \code{depsRemoved} were removed from first level dependencies
765 +
#' @examples 
766 +
#' pkgDepIfDepRemoved("Require", "remotes")
767 +
pkgDepIfDepRemoved <- function(pkg = character(), depsRemoved = character()) {
768 +
  if (length(pkg)) {
769 +
    p2 <- pkgDep2(pkg, recursive = TRUE)
770 +
    p1 <- sort(extractPkgName(pkgDep(pkg, recursive = TRUE)[[1]]))
771 +
    p2Clean <- sort(
772 +
      unique(
773 +
        extractPkgName(
774 +
          setdiff(
775 +
            c(extractPkgName(names(p2)), 
776 +
              unlist(unname(p2[!extractPkgName(names(p2)) %in% depsRemoved]))), 
777 +
            depsRemoved))))
778 +
    pkg <- paste(paste(setdiff(p1, p2Clean), collapse = ", "))
779 +
  }
780 +
  return(pkg)
781 +
}
Files Coverage
R 0.24%
Project Totals (10 files) 0.24%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
        informational: true
10
    patch:
11
      default:
12
        target: auto
13
        threshold: 1%
14
        informational: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading