From d846f6cb0be445fb48f79686f1d7b958481704e3 Mon Sep 17 00:00:00 2001 From: agdamsbo <43278243+agdamsbo@users.noreply.github.com> Date: Thu, 24 Apr 2025 09:21:14 +0000 Subject: [PATCH 1/5] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20agda?= =?UTF-8?q?msbo/FreesearchR@54ba126a8b95455509d4956c2f607fdd26057297=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- CODE_OF_CONDUCT.html | 2 +- LICENSE.html | 2 +- QA.html | 2 +- ROADMAP.html | 2 +- SESSION.html | 148 ++++++++++++-------- articles/FreesearchR.html | 2 +- articles/data-types.html | 2 +- articles/index.html | 2 +- articles/session.html | 168 +++++++++++++++-------- articles/visuals.html | 2 +- authors.html | 6 +- index.html | 6 +- news/index.html | 6 +- pkgdown.yml | 2 +- reference/add_class_icon.html | 2 +- reference/add_sparkline.html | 2 +- reference/align_axes.html | 2 +- reference/all_but.html | 2 +- reference/append_column.html | 2 +- reference/append_list.html | 2 +- reference/argsstring2list.html | 2 +- reference/baseline_table.html | 2 +- reference/class_icons.html | 2 +- reference/clean_common_axis.html | 2 +- reference/clean_date.html | 2 +- reference/clean_sep.html | 2 +- reference/columnSelectInput.html | 2 +- reference/contrast_text.html | 2 +- reference/create_baseline.html | 2 +- reference/create_log_tics.html | 2 +- reference/create_overview_datagrid.html | 2 +- reference/custom_theme.html | 2 +- reference/cut-variable.html | 2 +- reference/cut_var.html | 2 +- reference/data-correlations.html | 2 +- reference/data-import.html | 2 +- reference/data-plots.html | 2 +- reference/data-summary.html | 2 +- reference/data_description.html | 2 +- reference/data_type.html | 2 +- reference/data_type_filter.html | 2 +- reference/data_types.html | 2 +- reference/default_format_arguments.html | 2 +- reference/default_parsing.html | 2 +- reference/drop_empty_event.html | 2 +- reference/expression_string.html | 2 +- reference/factorize.html | 2 +- reference/file_export.html | 2 +- reference/format_writer.html | 2 +- reference/get_fun_options.html | 2 +- reference/get_label.html | 2 +- reference/get_plot_options.html | 2 +- reference/getfun.html | 4 +- reference/gg_theme_export.html | 2 +- reference/gg_theme_shiny.html | 2 +- reference/ggeulerr.html | 2 +- reference/grepl_fix.html | 2 +- reference/if_not_missing.html | 2 +- reference/import-file-type.html | 2 +- reference/import-file.html | 2 +- reference/import-file_module.html | 2 +- reference/index.html | 2 +- reference/index_embed.html | 2 +- reference/is_any_class.html | 2 +- reference/is_consecutive.html | 2 +- reference/is_datetime.html | 2 +- reference/is_identical_to_previous.html | 2 +- reference/is_valid_redcap_url.html | 2 +- reference/is_valid_token.html | 2 +- reference/launch_FreesearchR.html | 2 +- reference/limit_log.html | 2 +- reference/line_break.html | 2 +- reference/merge_expression.html | 2 +- reference/merge_long.html | 2 +- reference/missing_fraction.html | 2 +- reference/modify_qmd.html | 2 +- reference/overview_vars.html | 2 +- reference/pipe_string.html | 2 +- reference/plot.tbl_regression.html | 2 +- reference/plot_euler.html | 2 +- reference/plot_euler_single.html | 2 +- reference/plot_sankey_single.html | 2 +- reference/possible_functions.html | 2 +- reference/possible_plots.html | 2 +- reference/read_input.html | 2 +- reference/redcap_read_shiny_module.html | 2 +- reference/regression_model.html | 2 +- reference/regression_table.html | 2 +- reference/remove_empty_attr.html | 2 +- reference/remove_empty_cols.html | 2 +- reference/remove_nested_list.html | 2 +- reference/repeated_instruments.html | 2 +- reference/selectInputIcon.html | 2 +- reference/set_column_label.html | 2 +- reference/sort_by.html | 2 +- reference/specify_qmd_format.html | 2 +- reference/subset_types.html | 2 +- reference/supported_functions.html | 2 +- reference/supported_plots.html | 2 +- reference/symmetrical_scale_x_log10.html | 2 +- reference/tbl_merge.html | 2 +- reference/type_icons.html | 2 +- reference/update-factor.html | 2 +- reference/update-variables.html | 2 +- reference/update_variables_datagrid.html | 2 +- reference/vectorSelectInput.html | 2 +- reference/vertical_stacked_bars.html | 2 +- reference/wide2long.html | 2 +- reference/wrap_plot_list.html | 2 +- reference/write_quarto.html | 2 +- search.json | 2 +- 112 files changed, 317 insertions(+), 233 deletions(-) diff --git a/404.html b/404.html index 9765ba10..8120c9fb 100644 --- a/404.html +++ b/404.html @@ -24,7 +24,7 @@ FreesearchR - 25.4.3 + 25.4.4 + + + + + +
+
+
+ +
+

This module allow to enter an expression to create a new column in a data.frame.

+
+ +
+

Usage

+
create_column_ui(id)
+
+create_column_server(
+  id,
+  data_r = reactive(NULL),
+  allowed_operations = list_allowed_operations()
+)
+
+list_allowed_operations()
+
+modal_create_column(
+  id,
+  title = i18n("Create a new column"),
+  easyClose = TRUE,
+  size = "l",
+  footer = NULL
+)
+
+winbox_create_column(
+  id,
+  title = i18n("Create a new column"),
+  options = shinyWidgets::wbOptions(),
+  controls = shinyWidgets::wbControls()
+)
+
+ +
+

Arguments

+ + +
id
+

Module's ID.

+ + +
data_r
+

A shiny::reactive() function returning a data.frame.

+ + +
allowed_operations
+

A list of allowed operations, see below for details.

+ + +
title
+

An optional title for the dialog.

+ + +
easyClose
+

If TRUE, the modal dialog can be dismissed by +clicking outside the dialog box, or be pressing the Escape key. If +FALSE (the default), the modal dialog can't be dismissed in those +ways; instead it must be dismissed by clicking on a modalButton(), or +from a call to removeModal() on the server.

+ + +
size
+

One of "s" for small, "m" (the default) for medium, +"l" for large, or "xl" for extra large. Note that "xl" only +works with Bootstrap 4 and above (to opt-in to Bootstrap 4+, +pass bslib::bs_theme() to the theme argument of a page container +like fluidPage()).

+ + + +

UI for footer. Use NULL for no footer.

+ + +
options
+

List of options, see wbOptions().

+ + +
controls
+

List of controls, see wbControls().

+ +
+
+

Value

+

A shiny::reactive() function returning the data.

+
+
+

Note

+

User can only use a subset of function: (, c, +, -, *, ^, %%, %/%, /, ==, >, <, !=, <=, >=, &, |, abs, sign, sqrt, ceiling, floor, trunc, cummax, cummin, cumprod, cumsum, exp, expm1, log, log10, log2, log1p, cos, cosh, sin, sinh, tan, tanh, acos, acosh, asin, asinh, atan, atanh, cospi, sinpi, tanpi, gamma, lgamma, digamma, trigamma, round, signif, max, min, range, prod, sum, any, all, pmin, pmax, mean, paste, paste0, substr, nchar, trimws, gsub, sub, grepl, ifelse, length, as.numeric, as.character, as.integer, as.Date, as.POSIXct, as.factor, factor. +You can add more operations using the allowed_operations argument, for example if you want to allow to use package lubridate, you can do:

+

+
+ +
+ + +
+ + + +
+ + + + + + + diff --git a/reference/create_column_server.html b/reference/create_column_server.html new file mode 100644 index 00000000..04ece824 --- /dev/null +++ b/reference/create_column_server.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/reference/create_column_ui.html b/reference/create_column_ui.html new file mode 100644 index 00000000..04ece824 --- /dev/null +++ b/reference/create_column_ui.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/reference/cut_var.html b/reference/cut_var.html index e1445e35..262d2947 100644 --- a/reference/cut_var.html +++ b/reference/cut_var.html @@ -76,7 +76,7 @@ ) # S3 method for class 'Date' -cut_var(x, breaks, start.on.monday = TRUE, ...) +cut_var(x, breaks = NULL, start.on.monday = TRUE, ...)
@@ -151,11 +151,15 @@ #> Error in cut.POSIXt(x, ...): invalid specification of 'breaks' readr::parse_datetime(c("1992-02-01 01:00:20", "1992-02-06 03:00:20", "1992-05-01 01:20:20", "1992-09-01 08:20:20", "1999-02-01 21:20:20", "1992-12-01 03:02:20")) |> cut_var(breaks=NULL,format = "%A-%H") #> Error in cut.POSIXt(x, ...): invalid specification of 'breaks' +readr::parse_datetime(c("1992-02-01 01:00:20", "1992-02-06 03:00:20", "1992-05-01 01:20:20", "1992-09-01 08:20:20", "1999-02-01 21:20:20", "1992-12-01 03:02:20")) |> cut_var(breaks=NULL,format = "%W") +#> Error in cut.POSIXt(x, ...): invalid specification of 'breaks' as.Date(c("1992-02-01 01:00:20", "1992-02-06 03:00:20", "1992-05-01 01:20:20", "1992-09-01 08:20:20", "1999-02-01 21:20:20", "1992-12-01 03:02:20")) |> cut_var(2) #> [1] 1992-02-01 1992-02-01 1992-02-01 1992-02-01 1999-02-01 1992-02-01 #> Levels: 1992-02-01 1999-02-01 as.Date(c("1992-02-01 01:00:20", "1992-02-06 03:00:20", "1992-05-01 01:20:20", "1992-09-01 08:20:20", "1999-02-01 21:20:20", "1992-12-01 03:02:20")) |> cut_var(breaks = "weekday") #> Error in cut.Date(x, ...): invalid specification of 'breaks' +as.Date(c("1992-02-01 01:00:20", "1992-02-06 03:00:20", "1992-05-01 01:20:20", "1992-09-01 08:20:20", "1999-02-01 21:20:20", "1992-12-01 03:02:20")) |> cut_var(format = "%W") +#> Error in cut.Date(x, ...): argument "breaks" is missing, with no default