Running 'testthat.R' [16s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(sfheaders)
  > 
  > test_check("sfheaders")
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 1648 ]
  
  == Failed tests ================================================================
  -- Error ('test-cast.R:503'): sf objects are casted ----------------------------
  <Rcpp::exception/C++Error/error/condition>
  Error: geometries - Expecting an integer vector for indexing
  Backtrace:
      x
   1. \-sfheaders::sf_cast(sf, cast_to) at test-cast.R:503:2
   2.   \-sfheaders:::rcpp_cast_sf(sf, to, close)
  -- Error ('test-df.R:201'): different data.frame columns supported -------------
  <Rcpp::exception/C++Error/error/condition>
  Error: geometries - Expecting an integer vector for indexing
  Backtrace:
      x
   1. \-sfheaders::sf_to_df(sf, fill = TRUE) at test-df.R:201:2
   2.   \-sfheaders:::rcpp_sf_to_df(sf, fill)
  -- Error ('test-df.R:457'): list-columns get expanded --------------------------
  <Rcpp::exception/C++Error/error/condition>
  Error: geometries - Expecting an integer vector for indexing
  Backtrace:
      x
   1. \-sfheaders::sf_to_df(df, fill = TRUE) at test-df.R:457:2
   2.   \-sfheaders:::rcpp_sf_to_df(sf, fill)
  -- Error ('test-df.R:476'): subsetted sf object converts to df -----------------
  <Rcpp::exception/C++Error/error/condition>
  Error: geometries - Expecting an integer vector for indexing
  Backtrace:
      x
   1. \-sfheaders::sf_to_df(sf[1, ], fill = TRUE) at test-df.R:476:2
   2.   \-sfheaders:::rcpp_sf_to_df(sf, fill)
  -- Error ('test-df_attributes.R:15'): sfc_columns attribute added and column names uniquified --
  <Rcpp::exception/C++Error/error/condition>
  Error: geometries - Expecting an integer vector for indexing
  Backtrace:
      x
   1. \-sfheaders::sf_to_df(sf, fill = TRUE) at test-df_attributes.R:15:2
   2.   \-sfheaders:::rcpp_sf_to_df(sf, fill)
  -- Error ('test-lists.R:93'): sf with list columns are unlist ------------------
  <Rcpp::exception/C++Error/error/condition>
  Error: geometries - Expecting an integer vector for indexing
  Backtrace:
      x
   1. \-sfheaders:::rcpp_sf_to_df_unlist(sf, TRUE, unlist = "l") at test-lists.R:93:2
  -- Error ('test-lists.R:340'): ignore unlist columns if they aren't lists ------
  <Rcpp::exception/C++Error/error/condition>
  Error: geometries - Expecting an integer vector for indexing
  Backtrace:
      x
   1. \-sfheaders::sf_to_df(sf = sf, fill = TRUE, unlist = "val") at test-lists.R:340:3
   2.   \-sfheaders:::rcpp_sf_to_df_unlist(sf, unlist, fill)
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 1648 ]
  Error: Test failures
  Execution halted