Skip to content

Commit

Permalink
after 4 values use ...
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhock committed Jan 24, 2025
1 parent d900a03 commit 93210a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion R/z_animintHelpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,12 @@ checkExtraParams <- function(extra_params, aes_mapping, layer_df){
c(ep[-named.i], if(length(u.vals)==1){
u.vals
}else{
sprintf("one of: [%s]", paste(u.vals, collapse=", "))
disp.vals <- if(length(u.vals)>4){
c(u.vals[1:2], "...", u.vals[c(length(u.vals)-1, length(u.vals))])
}else{
u.vals
}
sprintf("one of: [%s]", paste(disp.vals, collapse=", "))
})
}else{
ep
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-renderer-driverjs.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,3 @@ test_that("driver sel Start Tour", {
class = "driver-popover-description",
style = "display: block;")))
})

0 comments on commit 93210a3

Please sign in to comment.