Skip to content

Commit 1179bf5

Browse files
committed
docs: improve documentation of prudence argument
1 parent 52d36a2 commit 1179bf5

File tree

8 files changed

+37
-32
lines changed

8 files changed

+37
-32
lines changed

R/compute-rd.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
#' @param name The name of the table to store the result in.
1313
#' @param schema_name The schema to store the result in, defaults to the current schema.
1414
#' @param temporary Set to `FALSE` to store the result in a permanent table.
15-
#' @param prudence Convenience argument to control automatic materialization of data.
15+
#' @param prudence Convenience argument to control automatic materialization of data,
16+
#' for memory protection.
1617
#'
17-
#' - `"lavish"`: regardless of size,
18-
#' - `"frugal"`: never,
19-
#' - `"thrifty"`: up to a maximum size of 1 million cells.
18+
#' - `"lavish"`: automatically materialize _regardless of size_,
19+
#' - `"frugal"`: _never_ automatically materialize,
20+
#' - `"thrifty"`: automatically materialize _up to a maximum size of 1 million cells_.
2021
#'
2122
#' The default is to inherit from the input.
2223
#' The same effect can be achieved by forwarding the output to [as_duckdb_tibble()]

R/ducktbl.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
#'
1212
#' @param ... For `duckdb_tibble()`, passed on to [tibble()].
1313
#' For `as_duckdb_tibble()`, passed on to methods.
14-
#' @param prudence,.prudence Controls automatic materialization of data.
14+
#' @param prudence,.prudence Controls automatic materialization of data,
15+
#' for memory protection.
1516
#'
16-
#' - `"lavish"`: regardless of size,
17-
#' - `"frugal"`: never,
18-
#' - `"thrifty"`: up to a maximum size of 1 million cells.
17+
#' - `"lavish"`: automatically materialize _regardless of size_,
18+
#' - `"frugal"`: _never_ automatically materialize,
19+
#' - `"thrifty"`: automatically materialize _up to a maximum size of 1 million cells_.
1920
#'
2021
#' The default is `"lavish"` for `duckdb_tibble()` and `as_duckdb_tibble()`,
2122
#' and may be different for other functions.

R/io2.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ read_json_duckdb <- function(path, ..., prudence = c("thrifty", "lavish", "fruga
9090
#' @param table_function The name of a table-valued
9191
#' DuckDB function such as `"read_parquet"`,
9292
#' `"read_csv"`, `"read_csv_auto"` or `"read_json"`.
93-
#' @param prudence Controls automatic materialization of data.
93+
#' @param prudence Controls automatic materialization of data, for memory protection.
9494
#'
95-
#' - `"thrifty"`: up to a maximum size of 1 million cells,
96-
#' - `"lavish"`: regardless of size,
97-
#' - `"frugal"`: never.
95+
#' - `"lavish"`: automatically materialize _regardless of size_,
96+
#' - `"frugal"`: _never_ automatically materialize,
97+
#' - `"thrifty"`: automatically materialize _up to a maximum size of 1 million cells_.
9898
#'
9999
#' The default is `"thrifty"` for the ingestion functions,
100100
#' and may be different for other functions.

man/compute.duckplyr_df.Rd

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/compute_file.Rd

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/duckdb_tibble.Rd

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/read_file_duckdb.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/read_sql_duckdb.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)