Skip to content

Commit

Permalink
update for addressing errors for BiocCheck::BiocCheck('new-package'=T…
Browse files Browse the repository at this point in the history
…RUE)
  • Loading branch information
GohtaAihara committed May 29, 2024
1 parent 724d9ff commit 3747b8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
^data-raw$
^.github$
^vignettes/merfish_mousePOA_raw.RDS$
^vignettes/formatting-SpatialExperiment-for-SEraster.Rmd$
^vignettes/formatting-SpatialExperiment-for-SEraster.Rmd$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Suggests:
testthat (>= 3.0.0),
knitr,
rmarkdown
VignetteBuilder: knitr, rmarkdown
VignetteBuilder: knitr
Config/testthat/edition: 3
RoxygenNote: 7.3.1
Depends:
Expand Down
4 changes: 2 additions & 2 deletions R/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ permutateByRotation <- function(input, n_perm = 1, verbose = FALSE) {

## get original x,y coordinates
pos_orig <- data.frame(spatialCoords(spe))
stopifnot("Column 1 and 2 of the spatialCoords slot should be named x and y, respectively. Please change column names accordingly."=colnames(pos_orig)[1:2] == c("x", "y"))
stopifnot("Column 1 and 2 of the spatialCoords slot should be named x and y, respectively. Please change column names accordingly."=colnames(pos_orig)[seq_along(c("x", "y"))] == c("x", "y"))

output2 <- lapply(angles, function(angle) {
## rotate around the midrange point
Expand Down Expand Up @@ -679,7 +679,7 @@ permutateByRotation <- function(input, n_perm = 1, verbose = FALSE) {

## get original x,y coordinates
pos_orig <- data.frame(spatialCoords(input))
stopifnot("Column 1 and 2 of the spatialCoords slot should be named x and y, respectively. Please change column names accordingly."=colnames(pos_orig)[1:2] == c("x", "y"))
stopifnot("Column 1 and 2 of the spatialCoords slot should be named x and y, respectively. Please change column names accordingly."=colnames(pos_orig)[seq_along(c("x", "y"))] == c("x", "y"))

output <- lapply(angles, function(angle) {
## rotate around the midrange point
Expand Down

0 comments on commit 3747b8f

Please sign in to comment.