Running 'test-as.data.frame.R' [1s]
  Running 'test-build_r_pkg.R' [3s]
  Running 'test-export.R' [0s]
  Running 'test-format_record.R' [1s]
  Running 'test-keyring.R' [0s]
Running the tests in 'tests/test-build_r_pkg.R' failed.
Complete output:
  > library(REDCapExporter)
  > temppath <- tempdir()
  > build_r_data_package(
  +   x            = avs_raw_core,
  +   path         = temppath,
  +   author_roles = list(dewittp = c("cre", "aut")),
  + )
  Creating source package at D:\temp\2026_03_06_11_10_10_4045\Rtmpk3X2OH\rcd14465
  ℹ Updating rcd14465 documentation
  First time using roxygen2. Upgrading automatically...
  ℹ Setting RoxygenNote to "7.3.3"
  ℹ Loading rcd14465
  Writing 'NAMESPACE'
  Writing 'project.Rd'
  Writing 'metadata.Rd'
  Writing 'user.Rd'
  Writing 'record.Rd'
  > 
  > x <- fs::dir_tree(temppath)
  D:\temp\2026_03_06_11_10_10_4045\Rtmpk3X2OH
  └── rcd14465
      ├── data
      │   ├── metadata.rda
      │   ├── project.rda
      │   ├── record.rda
      │   └── user.rda
      ├── DESCRIPTION
      ├── inst
      │   └── raw-data
      │       ├── metadata.rds
      │       ├── project.rds
      │       ├── record.rds
      │       └── user.rds
      ├── LICENSE
      ├── man
      │   ├── metadata.Rd
      │   ├── project.Rd
      │   ├── record.Rd
      │   └── user.Rd
      ├── NAMESPACE
      └── R
          └── datasets.R
  > x <- unname(sapply(strsplit(x, "rcd14465"), `[`, 2))
  > x[is.na(x)] <- ""
  > x <- sort(paste0("rcd14465", x))
  > 
  > print(x)
   [1] "rcd14465"                            "rcd14465"                           
   [3] "rcd14465"                            "rcd14465"                           
   [5] "rcd14465"                            "rcd14465/DESCRIPTION"               
   [7] "rcd14465/LICENSE"                    "rcd14465/NAMESPACE"                 
   [9] "rcd14465/R"                          "rcd14465/R/datasets.R"              
  [11] "rcd14465/data"                       "rcd14465/data/metadata.rda"         
  [13] "rcd14465/data/project.rda"           "rcd14465/data/record.rda"           
  [15] "rcd14465/data/user.rda"              "rcd14465/inst"                      
  [17] "rcd14465/inst/raw-data"              "rcd14465/inst/raw-data/metadata.rds"
  [19] "rcd14465/inst/raw-data/project.rds"  "rcd14465/inst/raw-data/record.rds"  
  [21] "rcd14465/inst/raw-data/user.rds"     "rcd14465/man"                       
  [23] "rcd14465/man/metadata.Rd"            "rcd14465/man/project.Rd"            
  [25] "rcd14465/man/record.Rd"              "rcd14465/man/user.Rd"               
  > 
  > stopifnot(
  +   identical(
  +     x,
  +     sort(
  +       c("rcd14465", "rcd14465/DESCRIPTION", "rcd14465/LICENSE", "rcd14465/NAMESPACE",
  +       "rcd14465/R", "rcd14465/R/datasets.R", "rcd14465/data", "rcd14465/data/metadata.rda",
  +       "rcd14465/data/project.rda", "rcd14465/data/record.rda", "rcd14465/data/user.rda",
  +       "rcd14465/inst", "rcd14465/inst/raw-data", "rcd14465/inst/raw-data/metadata.rds",
  +       "rcd14465/inst/raw-data/project.rds", "rcd14465/inst/raw-data/record.rds",
  +       "rcd14465/inst/raw-data/user.rds", "rcd14465/man", "rcd14465/man/metadata.Rd",
  +       "rcd14465/man/project.Rd", "rcd14465/man/record.Rd", "rcd14465/man/user.Rd")
  +     )
  +   )
  + )
  Error: identical(x, sort(c("rcd14465", "rcd14465/DESCRIPTION", "rcd14465/LICENSE",  .... is not TRUE
  Execution halted