diff --git a/pkgdown.yml b/pkgdown.yml index a8a3759..90782cf 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -3,7 +3,7 @@ pkgdown: 2.1.1 pkgdown_sha: ~ articles: FreesearchR: FreesearchR.html -last_built: 2025-04-15T10:21Z +last_built: 2025-04-15T15:13Z urls: reference: https://agdamsbo.github.io/FreesearchR/reference article: https://agdamsbo.github.io/FreesearchR/articles diff --git a/reference/add_class_icon.html b/reference/add_class_icon.html index f622032..b7626c6 100644 --- a/reference/add_class_icon.html +++ b/reference/add_class_icon.html @@ -1,5 +1,5 @@ -Convert class grid column to icon — add_class_icon • FreesearchR +Convert class grid column to icon — add_class_icon • FreesearchR Skip to contents @@ -42,7 +42,7 @@

Usage

-
add_class_icon(grid, column = "class")
+
add_class_icon(grid, column = "class", fun = class_icons)
@@ -68,10 +68,8 @@ overview_vars() |> toastui::datagrid() |> add_class_icon() -
-
-
-
+#> Error: grid_columns: Variable(s) class are not valid columns in data passed to datagrid() + diff --git a/reference/add_sparkline.html b/reference/add_sparkline.html index 8707db4..bedff1f 100644 --- a/reference/add_sparkline.html +++ b/reference/add_sparkline.html @@ -75,10 +75,10 @@ toastui::datagrid() |> add_sparkline() grid -
-
+
+
-
+ diff --git a/reference/class_icons.html b/reference/class_icons.html new file mode 100644 index 0000000..d46c84d --- /dev/null +++ b/reference/class_icons.html @@ -0,0 +1,363 @@ + +Get data class icons — class_icons • FreesearchR + Skip to contents + + +
+
+
+ +
+

Get data class icons

+
+ +
+

Usage

+
class_icons(x)
+
+ +
+

Arguments

+ + +
x
+

character vector of data classes

+ +
+
+

Value

+

list

+
+ +
+

Examples

+
"numeric" |> class_icons()|> str()
+#> List of 3
+#>  $ name    : chr "i"
+#>  $ attribs :List of 3
+#>   ..$ class     : chr "fas fa-calculator"
+#>   ..$ role      : chr "presentation"
+#>   ..$ aria-label: chr "calculator icon"
+#>  $ children: list()
+#>  - attr(*, "class")= chr "shiny.tag"
+#>  - attr(*, "browsable_html")= logi TRUE
+#>  - attr(*, "html_dependencies")=List of 1
+#>   ..$ :List of 10
+#>   .. ..$ name      : chr "font-awesome"
+#>   .. ..$ version   : chr "6.5.2"
+#>   .. ..$ src       :List of 1
+#>   .. .. ..$ file: chr "fontawesome"
+#>   .. ..$ meta      : NULL
+#>   .. ..$ script    : NULL
+#>   .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. ..$ head      : NULL
+#>   .. ..$ attachment: NULL
+#>   .. ..$ package   : chr "fontawesome"
+#>   .. ..$ all_files : logi TRUE
+#>   .. ..- attr(*, "class")= chr "html_dependency"
+mtcars |> sapply(class) |> class_icons() |> str()
+#> List of 11
+#>  $ mpg :List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ cyl :List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ disp:List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ hp  :List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ drat:List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ wt  :List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ qsec:List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ vs  :List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ am  :List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ gear:List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+#>  $ carb:List of 3
+#>   ..$ name    : chr "i"
+#>   ..$ attribs :List of 3
+#>   .. ..$ class     : chr "fas fa-calculator"
+#>   .. ..$ role      : chr "presentation"
+#>   .. ..$ aria-label: chr "calculator icon"
+#>   ..$ children: list()
+#>   ..- attr(*, "class")= chr "shiny.tag"
+#>   ..- attr(*, "browsable_html")= logi TRUE
+#>   ..- attr(*, "html_dependencies")=List of 1
+#>   .. ..$ :List of 10
+#>   .. .. ..$ name      : chr "font-awesome"
+#>   .. .. ..$ version   : chr "6.5.2"
+#>   .. .. ..$ src       :List of 1
+#>   .. .. .. ..$ file: chr "fontawesome"
+#>   .. .. ..$ meta      : NULL
+#>   .. .. ..$ script    : NULL
+#>   .. .. ..$ stylesheet: chr [1:2] "css/all.min.css" "css/v4-shims.min.css"
+#>   .. .. ..$ head      : NULL
+#>   .. .. ..$ attachment: NULL
+#>   .. .. ..$ package   : chr "fontawesome"
+#>   .. .. ..$ all_files : logi TRUE
+#>   .. .. ..- attr(*, "class")= chr "html_dependency"
+
+
+
+ + +
+ + + + + + + diff --git a/reference/create_baseline.html b/reference/create_baseline.html index 1ab99e3..2fb6713 100644 --- a/reference/create_baseline.html +++ b/reference/create_baseline.html @@ -84,7 +84,6 @@

Examples

mtcars |> create_baseline(by.var = "gear", add.p = "yes" == "yes")
-#> Setting theme "JAMA"
 
@@ -173,7 +172,6 @@ N = 5
Characteristic 1 (20)
1 Kruskal-Wallis rank sum test; Fisher’s exact test
create_baseline(default_parsing(mtcars), by.var = "am", add.p = FALSE, add.overall = FALSE, theme = "lancet") -#> Setting theme "The Lancet"
diff --git a/reference/create_overview_datagrid.html b/reference/create_overview_datagrid.html index cae353d..2cfabbd 100644 --- a/reference/create_overview_datagrid.html +++ b/reference/create_overview_datagrid.html @@ -63,10 +63,10 @@
mtcars |>
   overview_vars() |>
   create_overview_datagrid()
-
-
+
+
-
+ diff --git a/reference/cut-variable.html b/reference/cut-variable.html index ad4fbbc..a1c4401 100644 --- a/reference/cut-variable.html +++ b/reference/cut-variable.html @@ -52,13 +52,6 @@ easyClose = TRUE, size = "l", footer = NULL -) - -winbox_cut_variable( - id, - title = i18n("Convert Numeric to Factor"), - options = shinyWidgets::wbOptions(), - controls = shinyWidgets::wbControls()) @@ -97,14 +90,6 @@ like footer

UI for footer. Use NULL for no footer.

- -
options
-

List of options, see wbOptions().

- - -
controls
-

List of controls, see wbControls().

-

Value

diff --git a/reference/cut_var.html b/reference/cut_var.html index 6823792..6f60448 100644 --- a/reference/cut_var.html +++ b/reference/cut_var.html @@ -137,17 +137,20 @@ #> 03:02:21 #> Levels: 01:00:20 02:10:20 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(2) -#> Error in base::cut.default(x, ...): 'x' must be numeric +#> [1] 1992-02-01 01:00:20 1992-02-01 01:00:20 1992-02-01 01:00:20 +#> [4] 1992-02-01 01:00:20 1999-02-01 21:20:20 1992-02-01 01:00:20 +#> Levels: 1992-02-01 01:00:20 1999-02-01 21:20:20 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 = "weekday") -#> Error in base::cut.default(x, ...): 'x' must be numeric +#> 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 = "month_only") -#> Error in base::cut.default(x, ...): 'x' must be numeric +#> 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 base::cut.default(x, ...): 'x' must be numeric +#> 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) -#> Error in base::cut.default(x, ...): 'x' must be numeric +#> [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 base::cut.default(x, ...): 'x' must be numeric +#> Error in cut.Date(x, ...): invalid specification of 'breaks'
Characteristic