Skip to content

Commit d454979

Browse files
committed
Hotfix: update check for integers in click_pixels
1 parent 6380f08 commit d454979

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

R/click.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ click_pixels <- function(
3535
grid = TRUE
3636
) {
3737

38-
if (!is.matrix(m) | !is.integer(m)) {
39-
stop(
40-
"Argument 'm' must be a matrix object composed of integers.",
41-
call. = FALSE
42-
)
38+
if (!is.numeric(c(n_rows, n_cols, n_states))) {
39+
stop("Arguments 'n_rows', 'n_cols' and 'n_states' must be integer values.")
4340
}
4441

4542
if (!is.logical(grid)) {

tests/testthat/Rplots.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)