Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGoueguel committed Apr 25, 2024
1 parent 1c507c1 commit 46d978d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ellipseParam.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ellipseParam <- function(data, k = 2, pcx = 1, pcy = 2) {
if (pcx == 0 || pcy == 0) {
stop("pcx and pcy must be non-zero.")
}
if (!is.numeric(k) || k < 2 || k != floor(k)) {
if (k < 2) {
stop("k must be at least equal to 2.")
}
if (k > ncol(data)) {
Expand Down
Binary file added tests/testthat/testthat-problems.rds
Binary file not shown.

0 comments on commit 46d978d

Please sign in to comment.