From 8d9d06fe0ba80c593591cccd7ab609e386f49403 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Sat, 8 Feb 2025 15:45:26 +0900 Subject: [PATCH] List supported data encodings properly --- R/write-parquet.R | 2 +- man/write_parquet.Rd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/write-parquet.R b/R/write-parquet.R index 9690d46..69fd574 100644 --- a/R/write-parquet.R +++ b/R/write-parquet.R @@ -38,7 +38,7 @@ #' error. #' #' This version of nanoparquet supports the following encodings: -#' `r paste("\u0060", names(nanoparquet:::encodings), "\u0060", collapse = ", ")`. +#' `PLAIN`, `PLAIN_DICTIONARY`, `RLE`, and `RLE_DICTIONARY`. #' #' See [parquet-encodings] for more about encodings. #' @param metadata Additional key-value metadata to add to the file. diff --git a/man/write_parquet.Rd b/man/write_parquet.Rd index fb1328e..708f663 100644 --- a/man/write_parquet.Rd +++ b/man/write_parquet.Rd @@ -55,7 +55,7 @@ or nanoparquet does not implement it, \code{write_parquet()} throws an error. This version of nanoparquet supports the following encodings: -\code{PLAIN}, \code{GROUP_VAR_INT}, \code{PLAIN_DICTIONARY}, \code{RLE}, \code{BIT_PACKED}, \code{DELTA_BINARY_PACKED}, \code{DELTA_LENGTH_BYTE_ARRAY}, \code{DELTA_BYTE_ARRAY}, \code{RLE_DICTIONARY}, \code{BYTE_STREAM_SPLIT}. +\code{PLAIN}, \code{PLAIN_DICTIONARY}, \code{RLE}, and \code{RLE_DICTIONARY}. See \link{parquet-encodings} for more about encodings.} @@ -79,7 +79,7 @@ Writes the contents of an R data frame into a Parquet file. } \details{ \code{write_parquet()} converts string columns to UTF-8 encoding by calling -\code{\link[base:Encoding]{base::enc2utf8()}}. It does the same for factor levels. +\code{\link[base:enc2utf8]{base::enc2utf8()}}. It does the same for factor levels. } \examples{ \dontshow{if (FALSE) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}