Running examples in ‘GRAB-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: GRAB.ReadGeno
> ### Title: Read genotype data from multiple file formats
> ### Aliases: GRAB.ReadGeno
> 
> ### ** Examples
> 
> ## Raw genotype data
> RawFile <- system.file("extdata", "simuRAW.raw.gz", package = "GRAB")
> GenoMat <- data.table::fread(RawFile)
> GenoMat[1:10, 1:10]
       FID    IID   PAT   MAT   SEX PHENOTYPE SNP_1_A SNP_2_A SNP_3_A SNP_4_A
    <char> <char> <int> <int> <int>     <int>   <int>   <int>   <int>   <int>
 1:   f1_1   f1_1     0     0     1        -9       0       1       2       2
 2:   f1_2   f1_2     0     0     1        -9       1       1       1       0
 3:   f1_3   f1_3     0     0     1        -9       1       1       0       1
 4:   f1_4   f1_4     0     0     1        -9       1       1       1       2
 5:   f1_5   f1_5     0     0     1        -9       0       2       2       1
 6:   f1_6   f1_6     0     0     1        -9       0      NA       2       1
 7:   f1_7   f1_7     0     0     1        -9       0       1       1       1
 8:   f1_8   f1_8     0     0     1        -9       1       1       1       1
 9:   f1_9   f1_9     0     0     1        -9       1       1       2       1
10:  f1_10  f1_10     0     0     1        -9       1       2       1       2
> 
> ## PLINK files
> PLINKFile <- system.file("extdata", "simuPLINK.bed", package = "GRAB")
> # If include/exclude files are not specified, then control$AllMarker should be TRUE
> GenoList <- GRAB.ReadGeno(PLINKFile, control = list(AllMarkers = TRUE))
[INFO] 2026-06-07 12:58:46 Marker selection: Analyzing all markers in the genotype file.
[INFO] 2026-06-07 12:58:46 Reading bim file: simuPLINK.bim
[INFO] 2026-06-07 12:58:46 Reading fam file: simuPLINK.fam
[INFO] 2026-06-07 12:58:46 Using all samples from genotype file (1000 samples)
[INFO] 2026-06-07 12:58:46 Setting up PLINK object in C++ ...
    Number of subjects with genotype: 1000
[INFO] 2026-06-07 12:58:46 Reading genotypes: 1000 subjects, 1100 markers
[INFO] 2026-06-07 12:58:46 Genotype reading completed
> GenoMat <- GenoList$GenoMat
> markerInfo <- GenoList$markerInfo
> head(GenoMat[, 1:6])
     SNP_1 SNP_2 SNP_3 SNP_4 SNP_5 SNP_6
f1_1     0     1     2     2     1     0
f1_2     1     1     1     0     0     0
f1_3     1     1     0     1     0   NaN
f1_4     1     1     1     2     1     0
f1_5     0     2     2     1   NaN     0
f1_6     0   NaN     2     1     0     0
> head(markerInfo)
  CHROM POS    ID REF ALT
1     1   1 SNP_1   G   A
2     1   2 SNP_2   G   A
3     1   3 SNP_3   G   A
4     1   4 SNP_4   G   A
5     1   5 SNP_5   G   A
6     1   6 SNP_6   G   A
> 
> ## BGEN files (Note the different REF/ALT order for BGEN and PLINK formats)
> BGENFile <- system.file("extdata", "simuBGEN.bgen", package = "GRAB")
> GenoList <- GRAB.ReadGeno(BGENFile, control = list(AllMarkers = TRUE))
[INFO] 2026-06-07 12:58:46 Marker selection: Analyzing all markers in the genotype file.
[INFO] 2026-06-07 12:58:46 Reading sample file: simuBGEN.sample
[INFO] 2026-06-07 12:58:46 Reading bgi file: simuBGEN.bgen.bgi
Error in check_dbplyr() : 
  The package "dbplyr" is required to communicate with database backends.
Calls: GRAB.ReadGeno ... tbl.DBIConnection -> check_dbplyr -> check_installed
Execution halted