Skip to content

knit print polars DataFrame

Description

Mimics Python Polars’ NotebookFormatter for HTML outputs.

Usage

knit_print.polars_data_frame(x, ...)

knit_print.polars_series(x, ...)

Arguments

x A polars object
Additional arguments passed to the S3 method. Currently ignored, except two optional arguments options and inline; see the references below.

Details

Outputs HTML tables if the output format is HTML and the document’s df_print option is not “default” or “tibble”.

Or, the output format can be enforced with R’s options function as follows:

  • options(polars.df_knitr_print = “default”) for the default print method.
  • options(polars.df_knitr_print = “html”) for the HTML table.

Value

x invisibly or knit_asis) object.