vroom_altrep() can be used directly as input to the altrep
argument of vroom().
Details
Alternatively there is also a family of environment variables to control use of
the Altrep framework. These can then be set in your .Renviron file, e.g.
with usethis::edit_r_environ(). For versions of R where the Altrep
framework is unavailable (R < 3.5.0) they are automatically turned off and
the variables have no effect. The variables can take one of true, false,
TRUE, FALSE, 1, or 0.
VROOM_USE_ALTREP_NUMERICS- If set use Altrep for all numeric types (defaultfalse).
There are also individual variables for each type. Currently only
VROOM_USE_ALTREP_CHR defaults to true.
VROOM_USE_ALTREP_CHRVROOM_USE_ALTREP_FCTVROOM_USE_ALTREP_INTVROOM_USE_ALTREP_BIG_INTVROOM_USE_ALTREP_DBLVROOM_USE_ALTREP_NUMVROOM_USE_ALTREP_LGLVROOM_USE_ALTREP_DTTMVROOM_USE_ALTREP_DATEVROOM_USE_ALTREP_TIME
Examples
vroom_altrep()
#> Using Altrep representations for:
#> * chr
vroom_altrep(c("chr", "fct", "int"))
#> Using Altrep representations for:
#> * chr
#> * fct
#> * int
vroom_altrep(TRUE)
#> Using Altrep representations for:
#> * chr
#> * fct
#> * int
#> * dbl
#> * num
#> * lgl
#> * dttm
#> * date
#> * time
#> * big_int
vroom_altrep(FALSE)
#> Using Altrep representations for:
#> *
