Skip to content

Commit

Permalink
suppress warning when package is not installed for .hasPkg
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Feb 19, 2025
1 parent 858f60a commit 1b3de7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ checkPackageSize <- function(.BiocPackage, size=5){

.in_data <- function(f) { f %in% .DATA_DIRS }

.hasPkg <- function(pkg) nzchar(system.file(package = pkg))
.hasPkg <- function(pkg) {
suppressWarnings({
nzchar(system.file(package = pkg))
})
}

.findLargeFiles <- function(.BiocPackage, data_only) {
pkgdir <- .BiocPackage$sourceDir
Expand Down

0 comments on commit 1b3de7c

Please sign in to comment.