Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt_currency() to pdf output doesn't show € symbol #1345

Open
6 tasks done
ThierryO opened this issue Jun 7, 2023 · 1 comment
Open
6 tasks done

fmt_currency() to pdf output doesn't show € symbol #1345

ThierryO opened this issue Jun 7, 2023 · 1 comment

Comments

@ThierryO
Copy link

ThierryO commented Jun 7, 2023

Prework

Description

Using "EUR" currency displays "EUR" in pdf instead of of the € symbol.

Reproducible example

  • Post a minimal reproducible example so the maintainer can troubleshoot the problems you identify. A reproducible example is:
    • Runnable: post enough R code and data so any onlooker can create the error on their own computer.
    • Minimal: reduce runtime wherever possible and remove complicated details that are irrelevant to the issue at hand.
    • Readable: format your code according to the tidyverse style guide.

content of test.Rmd

    ---
    title: "test"
    output: pdf_document
    ---
  
    ```{r}
    library(gt)
    exibble |>
      gt() |>
      fmt_currency(columns = currency, currency = "EUR")
    ```

Expected result

Display €49.95 instead of EUR49.95

Session info

─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.3.0 (2023-04-21)
 os       Ubuntu 22.04.2 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language nl_BE:nl
 collate  nl_BE.UTF-8
 ctype    nl_BE.UTF-8
 tz       Europe/Brussels
 date     2023-06-07
 rstudio  2023.06.0+421 Mountain Hydrangea (desktop)
 pandoc   3.1.1 @ /usr/lib/rstudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version date (UTC) lib source
 bookdown      0.34    2023-05-09 [1] CRAN (R 4.3.0)
 callr         3.7.3   2022-11-02 [1] CRAN (R 4.3.0)
 cli           3.6.1   2023-03-23 [1] CRAN (R 4.3.0)
 crayon        1.5.2   2022-09-29 [1] CRAN (R 4.3.0)
 curl          5.0.0   2023-01-12 [1] CRAN (R 4.3.0)
 desc          1.4.2   2022-09-08 [1] CRAN (R 4.3.0)
 digest        0.6.31  2022-12-11 [1] CRAN (R 4.3.0)
 evaluate      0.21    2023-05-05 [1] CRAN (R 4.3.0)
 fastmap       1.1.1   2023-02-24 [1] CRAN (R 4.3.0)
 fortunes      1.5-4   2016-12-29 [1] CRAN (R 4.3.0)
 htmltools     0.5.5   2023-03-23 [1] CRAN (R 4.3.0)
 knitr         1.43    2023-05-25 [1] CRAN (R 4.3.0)
 pkgbuild      1.4.0   2022-11-27 [1] CRAN (R 4.3.0)
 prettyunits   1.1.1   2020-01-24 [1] CRAN (R 4.3.0)
 processx      3.8.1   2023-04-18 [1] CRAN (R 4.3.0)
 ps            1.7.5   2023-04-18 [1] CRAN (R 4.3.0)
 R6            2.5.1   2021-08-19 [1] CRAN (R 4.3.0)
 remotes       2.4.2   2021-11-30 [1] CRAN (R 4.3.0)
 rlang         1.1.1   2023-04-28 [1] CRAN (R 4.3.0)
 rmarkdown     2.22    2023-06-01 [1] CRAN (R 4.3.0)
 rprojroot     2.0.3   2022-04-02 [1] CRAN (R 4.3.0)
 rstudioapi    0.14    2022-08-22 [1] CRAN (R 4.3.0)
 sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.3.0)
 withr         2.5.0   2022-03-03 [1] CRAN (R 4.3.0)
 xfun          0.39    2023-04-20 [1] CRAN (R 4.3.0)
 yaml          2.3.7   2023-01-23 [1] CRAN (R 4.3.0)
@rich-iannone
Copy link
Member

Thanks for filing this issue. Agree that this is substandard in LaTeX. This will be fixed up alongside the work done for #1346.

@rich-iannone rich-iannone moved this from Backlog to Next / Ready for Dev in R Markdown Team Projects Jun 8, 2023
@rich-iannone rich-iannone added this to the v0.9.1 milestone Jun 8, 2023
@rich-iannone rich-iannone moved this from Next / Ready for Dev to To discuss / To plan in R Markdown Team Projects Jul 11, 2023
@rich-iannone rich-iannone modified the milestones: v0.9.1, v0.10.0 Aug 23, 2023
@rich-iannone rich-iannone moved this from To discuss / To plan to Backlog in R Markdown Team Projects Sep 30, 2023
@rich-iannone rich-iannone modified the milestones: v0.10.0, v0.11.0 Sep 30, 2023
@rich-iannone rich-iannone modified the milestones: v0.11.0, v0.12.0 Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment