Skip to content

Commit

Permalink
Import 'stats' used for 'prcomp'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Nov 2, 2023
1 parent 9ea00f6 commit b4ab53b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ Imports:
SpatialExperiment,
SummarizedExperiment,
Matrix,
MatrixGenerics
MatrixGenerics,
stats
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ import(SpatialExperiment)
import(SummarizedExperiment)
import(ggplot2)
import(spatialLIBD)
import(stats)
import(viridisLite)
2 changes: 1 addition & 1 deletion R/multi_gene.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ spot_plot_sparsity <- function(spe, genes, sample_id, assayname = "counts", minC
#'
#' @export
#' @author Nicholas J. Eagles
#' @import SpatialExperiment SummarizedExperiment Matrix
#' @import SpatialExperiment SummarizedExperiment stats
#' @family Spot plots summarizing expression of multiple genes simultaneously
#'
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-multi_gene.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test_plot_fun <- function(spe, plot_fun) {
"internally handled and may not be specified"
)
expect_error(
plot_fun(spe, genes, sample_id, var_name = 'sample_id'),
plot_fun(spe, genes, sample_id, var_name = "sample_id"),
"internally handled and may not be specified"
)

Expand Down

0 comments on commit b4ab53b

Please sign in to comment.