Skip to content
This repository was archived by the owner on Apr 10, 2022. It is now read-only.

Commit 8775440

Browse files
committed
Revert "Revert "Update hisub.R""
This reverts commit 31a2ed9.
1 parent 31a2ed9 commit 8775440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hisub.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ collect_params <- function(x) {
465465
message("\t data rows: ", elen)
466466
message("\t esize: ", esize)
467467
if (esize > 500 & elen > 1) {
468-
edata <- edata[c(1, sample(seq_along(edata[-1]), round(250 * elen / esize)))]
469-
message("\t reset esize to: ", esize)
468+
edata <- edata[c(1, sample(2:(elen + 1), round(250 * elen / esize)))]
469+
message("\t reset esize")
470470
}
471471
example_textarea[[y$param_name]] <<- paste(edata, collapse = "\n")
472472
}

0 commit comments

Comments
 (0)