From 510ad7303ab0f67e8a364c61f2942e451404a68b Mon Sep 17 00:00:00 2001 From: Stefan Kuethe Date: Fri, 13 Sep 2024 00:49:36 +0200 Subject: [PATCH] Add pkgdown site --- .Rbuildignore | 3 +++ .gitignore | 1 + _pkgdown.yml | 4 ++++ examples/formatters/formatter_money.R | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 _pkgdown.yml diff --git a/.Rbuildignore b/.Rbuildignore index c36130c..b6e70a0 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -5,3 +5,6 @@ examples/ ^README\.Rmd$ _NAMESPACE ^data-raw$ +^_pkgdown\.yml$ +^docs$ +^pkgdown$ diff --git a/.gitignore b/.gitignore index 5b6a065..234f028 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .Rhistory .RData .Ruserdata +docs diff --git a/_pkgdown.yml b/_pkgdown.yml new file mode 100644 index 0000000..d71acfb --- /dev/null +++ b/_pkgdown.yml @@ -0,0 +1,4 @@ +url: ~ +template: + bootstrap: 5 + diff --git a/examples/formatters/formatter_money.R b/examples/formatters/formatter_money.R index d820fa2..902db28 100644 --- a/examples/formatters/formatter_money.R +++ b/examples/formatters/formatter_money.R @@ -9,4 +9,4 @@ data <- data.frame( ) tabulator(data, width = 300) |> - set_formatter_money("Account_Balance", symbol_after = FALSE) + set_formatter_money("Account_Balance", symbol = "\U20AC", symbol_after = FALSE, hoz_align = "right")