R version 4.6.0 alpha (2026-04-01 r89771 ucrt) Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("helper/helper.R") > > x = tempdir() > res1 = backports:::file.info(x, extra_cols = TRUE) > res2 = backports:::file.info(x, extra_cols = FALSE) > stopifnot(is.data.frame(res1), nrow(res1) == 1L, ncol(res1) >= 7L) > stopifnot(is.data.frame(res2), nrow(res2) == 1L, ncol(res2) == 6L) > > expect_identical(res1, base::file.info(x)) > expect_identical(res1[, 1:6, drop = FALSE], res2) > > proc.time() user system elapsed 0.14 0.04 0.17