Running 'testthat.R' [14s/16s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > 
  > # required packages
  > library(testthat)
  > library(fst)
  > 
  > # some helper functions
  > source("testthat/helper_fstwrite.R")  # cross-version testing
  > 
  > # run tests
  > test_check("fst")
  [ FAIL 5 | WARN 0 | SKIP 1 | PASS 286 ]
  
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error (test_factor.R:72:3): Multiple sizes of 1-byte factor columns are stored correctly --
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
       x
    1. \-fst sample_data(30, 10) at test_factor.R:72:2
    2.   +-base::data.frame(...) at test_factor.R:33:2
    3.   \-fst factor_vec(nrofrows, nroflevels)
    4.     +-base::unique(c(levels, char_vec(nroflevels))) at test_factor.R:23:4
    5.     \-fst char_vec(nroflevels)
    6.       \-base::sapply(...) at test_factor.R:14:2
    7.         \-base::lapply(X = X, FUN = FUN, ...)
    8.           \-fst FUN(X[[i]], ...)
    9.             +-base::paste(sample(LETTERS, sample(1:4)), collapse = "") at test_factor.R:15:4
   10.             \-base::sample(LETTERS, sample(1:4))
   11.               \-base::sample.int(length(x), size, replace, prob)
  -- Error (test_factor.R:81:3): Multiple sizes of 2-byte factor columns are stored correctly --
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
       x
    1. \-fst sample_data(30, 257) at test_factor.R:81:2
    2.   +-base::data.frame(...) at test_factor.R:33:2
    3.   \-fst factor_vec(nrofrows, nroflevels)
    4.     +-base::unique(c(levels, char_vec(nroflevels))) at test_factor.R:23:4
    5.     \-fst char_vec(nroflevels) at test_factor.R:23:4
    6.       \-base::sapply(...) at test_factor.R:14:2
    7.         \-base::lapply(X = X, FUN = FUN, ...)
    8.           \-fst FUN(X[[i]], ...)
    9.             +-base::paste(sample(LETTERS, sample(1:4)), collapse = "") at test_factor.R:15:4
   10.             \-base::sample(LETTERS, sample(1:4))
   11.               \-base::sample.int(length(x), size, replace, prob)
  -- Error (test_factor.R:101:3): Multiple sizes of 4-byte factor columns  are stored correctly --
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
       x
    1. \-fst sample_data(30, 70000) at test_factor.R:101:2
    2.   +-base::data.frame(...) at test_factor.R:33:2
    3.   \-fst factor_vec(nrofrows, nroflevels)
    4.     +-base::unique(c(levels, char_vec(nroflevels))) at test_factor.R:23:4
    5.     \-fst char_vec(nroflevels) at test_factor.R:23:4
    6.       \-base::sapply(...) at test_factor.R:14:2
    7.         \-base::lapply(X = X, FUN = FUN, ...)
    8.           \-fst FUN(X[[i]], ...)
    9.             +-base::paste(sample(LETTERS, sample(1:4)), collapse = "") at test_factor.R:15:4
   10.             \-base::sample(LETTERS, sample(1:4))
   11.               \-base::sample.int(length(x), size, replace, prob)
  -- Error (test_fst.R:42:1): (code run outside of `test_that()`) ----------------
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      x
   1. \-fst char_vec(nr_of_rows) at test_fst.R:42:0
   2.   \-base::sapply(...) at test_fst.R:16:2
   3.     \-base::lapply(X = X, FUN = FUN, ...)
   4.       \-fst FUN(X[[i]], ...)
   5.         +-base::paste(sample(LETTERS, sample(1:4)), collapse = "") at test_fst.R:17:4
   6.         \-base::sample(LETTERS, sample(1:4))
   7.           \-base::sample.int(length(x), size, replace, prob)
  -- Error (test_rbind.R:23:1): (code run outside of `test_that()`) --------------
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      x
   1. \-fst char_vec(nr_of_rows) at test_rbind.R:23:0
   2.   \-base::sapply(...) at test_rbind.R:15:2
   3.     \-base::lapply(X = X, FUN = FUN, ...)
   4.       \-fst FUN(X[[i]], ...)
   5.         +-base::paste(sample(LETTERS, sample(1:4)), collapse = "") at test_rbind.R:17:6
   6.         \-base::sample(LETTERS, sample(1:4))
   7.           \-base::sample.int(length(x), size, replace, prob)
  
  [ FAIL 5 | WARN 0 | SKIP 1 | PASS 286 ]
  Error: Test failures
  Execution halted