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.97.4 🌊 aarch64-apple-darwin20
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)
06-30-24 10:57:56 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 
06-30-24 10:57:56 Using max n bins possible = 3 [strat.sub]
06-30-24 10:57:56 Created 10 stratified subsamples [resample]

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