22  rtemis with Quarto

rtemis includes colored and bold text in its console output, which should display correctly in the terminal, VS Code, or RStudio.

To allow formatted text to also appear correctly when using Quarto, install the fansi package and include the following block after your YAML header (if any) in your .qmd document:

```{r}
#| echo: false
#| results: asis
old.hooks <- fansi::set_knit_hooks(knitr::knit_hooks)
```
library(rtemis)
  .:rtemis 0.96.1 🌊 aarch64-apple-darwin20 (64-bit)
check_data(iris)
  iris: A data.table with 150 rows and 5 columns

  Data types
  * 4 numeric features
  * 0 integer features
  * 1 factor, which is not ordered
  * 0 character features
  * 0 date features

  Issues
  * 0 constant features
  * 1 duplicate case
  * 0 missing values

  Recommendations
  * Consider removing the duplicate case 
res <- resample(iris)
02-23-24 13:56:14 Input contains more than one columns; will stratify on last [resample]
.:Resampling Parameters
    n.resamples: 10 
      resampler: strat.sub 
   stratify.var: y 
        train.p: 0.75 
   strat.n.bins: 4 
02-23-24 13:56:14 Using max n bins possible = 3 [strat.sub]
02-23-24 13:56:14 Created 10 stratified subsamples [resample]

res
.:rtemis resample object 
              N: 10 
      resampler: strat.sub 
        train.p: 0.75 
   strat.n.bins: 3