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

> ### Name: smbinning
> ### Title: Optimal Binning for Scoring Modeling
> ### Aliases: smbinning
> 
> ### ** Examples
> 
> # Package loading and data exploration
> library(smbinning) # Load package and its data
> data(chileancredit) # Load smbinning sample dataset (Chilean Credit)
> str(chileancredit) # Quick description of the data
'data.frame':	7702 obs. of  19 variables:
 $ CustomerId       : chr  "0000000185" "0000000238" "0000000346" "0000000460" ...
 $ TOB              : int  44 79 102 NA 109 183 172 76 136 171 ...
 $ IncomeLevel      : Factor w/ 6 levels "0","1","2","3",..: 2 2 2 2 NA NA 1 2 1 1 ...
 $ Bal01            : num  605 1006 299 645 218 ...
 $ MaxDqBin01       : Factor w/ 7 levels "0","1","2","3",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ MaxDqBin02       : Factor w/ 8 levels "0","1","2","3",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ MaxDqBin03       : Factor w/ 8 levels "0","1","2","3",..: 1 1 1 1 1 1 1 2 1 1 ...
 $ MaxDqBin04       : Factor w/ 8 levels "0","1","2","3",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ MaxDqBin05       : Factor w/ 8 levels "0","1","2","3",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ MaxDqBin06       : Factor w/ 8 levels "0","1","2","3",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ MtgBal01         : num  0 0 0 0 0 0 0 0 0 0 ...
 $ NonBankTradesDq01: int  0 0 0 0 0 0 0 0 0 0 ...
 $ NonBankTradesDq02: int  0 0 0 0 0 0 0 0 0 0 ...
 $ NonBankTradesDq03: int  0 0 0 0 0 0 0 0 0 0 ...
 $ NonBankTradesDq04: int  0 0 0 0 0 0 0 1 0 0 ...
 $ NonBankTradesDq05: int  0 0 0 0 0 0 0 1 0 0 ...
 $ NonBankTradesDq06: int  0 0 0 0 0 0 0 1 0 0 ...
 $ FlagGB           : int  1 1 1 1 1 1 1 1 1 1 ...
 $ FlagSample       : int  1 1 1 1 1 1 1 1 1 1 ...
> table(chileancredit$FlagGB) # Tabulate target variable

   0    1 
 636 5654 
>  
> # Training and testing samples (Just some basic formality for Modeling) 
> chileancredit.train=subset(chileancredit,FlagSample==1)
> chileancredit.test=subset(chileancredit,FlagSample==0)
>  
> # Package application
> result=smbinning(df=chileancredit.train,y="FlagGB",x="TOB",p=0.05) # Run and save result
Loading required package: tcltk
Error in rsqlite_send_query(conn@ptr, statement) : no such table: df
Calls: smbinning ... initialize -> initialize -> rsqlite_send_query -> .Call
Execution halted