|
32 | 32 | #' with a scientific format (e.g., 4.24e5), else as truncated values (as "> 1000"
|
33 | 33 | #' and "< 1/1000").
|
34 | 34 | #' @param use_symbols Logical, if `TRUE`, column names that refer to particular
|
35 |
| -#' effectsizes (like Phi, Omega or Epsilon) include the related unicode-character |
36 |
| -#' instead of the written name. This only works on Windows for R >= 4.2, and on |
37 |
| -#' OS X or Linux for R >= 4.0. |
| 35 | +#' effectsizes (like Phi, Omega or Epsilon) include the related unicode-character |
| 36 | +#' instead of the written name. This only works on Windows for R >= 4.2, and on |
| 37 | +#' OS X or Linux for R >= 4.0. It is possible to define a global option for this |
| 38 | +#' setting, see 'Note'. |
38 | 39 | #' @param ... Arguments passed to or from other methods.
|
39 | 40 | #' @inheritParams format_p
|
40 | 41 | #' @inheritParams format_value
|
|
43 | 44 | #' @seealso Vignettes [Formatting, printing and exporting tables](https://easystats.github.io/insight/articles/display.html)
|
44 | 45 | #' and [Formatting model parameters](https://easystats.github.io/parameters/articles/model_parameters_formatting.html).
|
45 | 46 | #'
|
| 47 | +#' @note `options(insight_use_symbols = TRUE)` override the `use_symbols` argument |
| 48 | +#' and always displays symbols, if possible. |
46 | 49 | #' @examples
|
47 | 50 | #' format_table(head(iris), digits = 1)
|
48 | 51 | #'
|
@@ -75,7 +78,7 @@ format_table <- function(x,
|
75 | 78 | zap_small = FALSE,
|
76 | 79 | preserve_attributes = FALSE,
|
77 | 80 | exact = TRUE,
|
78 |
| - use_symbols = FALSE, |
| 81 | + use_symbols = getOption("insight_use_symbols", FALSE), |
79 | 82 | verbose = TRUE,
|
80 | 83 | ...) {
|
81 | 84 | # sanity check
|
|
0 commit comments