CRAN Package Check Results for Package HaDeX

Last updated on 2020-06-07 12:48:30 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1 6.66 96.88 103.54 ERROR
r-devel-linux-x86_64-debian-gcc 1.1 6.74 67.78 74.52 ERROR
r-devel-linux-x86_64-fedora-clang 1.1 124.69 ERROR
r-devel-linux-x86_64-fedora-gcc 1.1 115.90 ERROR
r-devel-windows-ix86+x86_64 1.1 34.00 146.00 180.00 ERROR
r-patched-linux-x86_64 1.1 8.03 86.66 94.69 ERROR
r-patched-solaris-x86 1.1 135.70 ERROR
r-release-linux-x86_64 1.1 6.51 87.82 94.33 ERROR
r-release-osx-x86_64 1.1 NOTE
r-release-windows-ix86+x86_64 1.1 31.00 146.00 177.00 ERROR
r-oldrel-osx-x86_64 1.1 WARN
r-oldrel-windows-ix86+x86_64 1.1 26.00 145.00 171.00 ERROR

Check Details

Version: 1.1
Check: examples
Result: ERROR
    Running examples in 'HaDeX-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: quality_control
    > ### Title: Experiment quality control
    > ### Aliases: quality_control
    >
    > ### ** Examples
    >
    > # load example data
    > dat <- read_hdx(system.file(package = "HaDeX", "HaDeX/data/KD_180110_CD160_HVEM.csv"))
    >
    > # calculate mean uncertainty
    > (result <- quality_control(dat = dat,
    + state_first = "CD160",
    + state_second = "CD160_HVEM",
    + chosen_time = 1,
    + in_time = 0.001))
    Error in `[.data.table`(dat, "Exposure") :
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
    Calls: quality_control -> unique -> [ -> [.data.table
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.1
Check: tests
Result: ERROR
     Running 'spelling.R' [0s/1s]
     Running 'testthat.R' [7s/10s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     -- 1. Error: class is right ---------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     -- 2. Error: size is right ----------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     == testthat results ===========================================================
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.1
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building 'overview.Rmd' using rmarkdown
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    Warning: Removed 14 rows containing missing values (geom_segment).
    Warning: Removed 1 rows containing missing values (geom_segment).
    Warning: Removed 14 rows containing missing values (geom_segment).
    Warning: Removed 1 rows containing missing values (geom_segment).
    Warning: Removed 13 rows containing missing values (geom_segment).
    Warning: Removed 14 rows containing missing values (geom_segment).
    Warning: Removed 30 rows containing missing values (geom_segment).
    Quitting from lines 507-513 (overview.Rmd)
    Error: processing vignette 'overview.Rmd' failed with diagnostics:
    When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
    --- failed re-building 'overview.Rmd'
    
    SUMMARY: processing the following file failed:
     'overview.Rmd'
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.1
Check: tests
Result: ERROR
     Running ‘spelling.R’ [0s/1s]
     Running ‘testthat.R’ [4s/10s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     ── 1. Error: class is right ───────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     ── 2. Error: size is right ────────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.1
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘DT’ ‘gsubfn’ ‘stringr’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 1.1
Check: examples
Result: ERROR
    Running examples in ‘HaDeX-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: quality_control
    > ### Title: Experiment quality control
    > ### Aliases: quality_control
    >
    > ### ** Examples
    >
    > # load example data
    > dat <- read_hdx(system.file(package = "HaDeX", "HaDeX/data/KD_180110_CD160_HVEM.csv"))
    >
    > # calculate mean uncertainty
    > (result <- quality_control(dat = dat,
    + state_first = "CD160",
    + state_second = "CD160_HVEM",
    + chosen_time = 1,
    + in_time = 0.001))
    Error in `[.data.table`(dat, "Exposure") :
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
    Calls: quality_control -> unique -> [ -> [.data.table
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.1
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [7s/29s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     ── 1. Error: class is right ───────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     ── 2. Error: size is right ────────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.1
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
    --- re-building ‘overview.Rmd’ using rmarkdown
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    Warning: Removed 14 rows containing missing values (geom_segment).
    Warning: Removed 1 rows containing missing values (geom_segment).
    Warning: Removed 14 rows containing missing values (geom_segment).
    Warning: Removed 1 rows containing missing values (geom_segment).
    Warning: Removed 13 rows containing missing values (geom_segment).
    Warning: Removed 14 rows containing missing values (geom_segment).
    Warning: Removed 30 rows containing missing values (geom_segment).
    Quitting from lines 507-513 (overview.Rmd)
    Error: processing vignette 'overview.Rmd' failed with diagnostics:
    When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
    --- failed re-building ‘overview.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘overview.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.1
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [7s/22s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     ── 1. Error: class is right ───────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     ── 2. Error: size is right ────────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.1
Check: tests
Result: ERROR
     Running 'spelling.R' [1s]
     Running 'testthat.R' [10s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     -- 1. Error: class is right ---------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     -- 2. Error: size is right ----------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     == testthat results ===========================================================
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 1.1
Check: tests
Result: ERROR
     Running ‘spelling.R’ [0s/0s]
     Running ‘testthat.R’ [6s/9s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     ── 1. Error: class is right ───────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     ── 2. Error: size is right ────────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 1.1
Check: installed package size
Result: NOTE
     installed size is 5.3Mb
     sub-directories of 1Mb or more:
     HaDeX 4.3Mb
Flavor: r-patched-solaris-x86

Version: 1.1
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [9s/18s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     ── 1. Error: class is right ───────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     ── 2. Error: size is right ────────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-solaris-x86

Version: 1.1
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘overview.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    Quitting from lines 40-43 (overview.Rmd)
    Error: processing vignette 'overview.Rmd' failed with diagnostics:
    there is no package called 'webshot'
    --- failed re-building ‘overview.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘overview.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-patched-solaris-x86

Version: 1.1
Check: tests
Result: ERROR
     Running ‘spelling.R’ [0s/1s]
     Running ‘testthat.R’ [6s/11s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     ── 1. Error: class is right ───────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     ── 2. Error: size is right ────────────────────────────────────────────────────
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-linux-x86_64

Version: 1.1
Check: tests
Result: ERROR
     Running 'spelling.R' [1s]
     Running 'testthat.R' [12s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     -- 1. Error: class is right ---------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     -- 2. Error: size is right ----------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     == testthat results ===========================================================
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 1.1
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘overview.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    Quitting from lines 40-43 (overview.Rmd)
    Error: processing vignette 'overview.Rmd' failed with diagnostics:
    cannot open the connection
    --- failed re-building ‘overview.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘overview.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-oldrel-osx-x86_64

Version: 1.1
Check: tests
Result: ERROR
     Running 'spelling.R' [1s]
     Running 'testthat.R' [11s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(HaDeX)
     >
     > test_check("HaDeX")
     -- 1. Error: class is right ---------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_is(...)
     4. HaDeX::quality_control(...)
     7. data.table:::`[.data.table`(dat, "Exposure")
    
     -- 2. Error: size is right ----------------------------------------------------
     When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.
     Backtrace:
     1. testthat::expect_equal(...)
     6. HaDeX::quality_control(...)
     9. data.table:::`[.data.table`(dat, "Exposure")
    
     == testthat results ===========================================================
     [ OK: 16 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
     1. Error: class is right
     2. Error: size is right
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64