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

Deprecated usage of match_font() #153

Closed
fkohrt opened this issue Jul 9, 2024 · 0 comments
Closed

Deprecated usage of match_font() #153

fkohrt opened this issue Jul 9, 2024 · 0 comments

Comments

@fkohrt
Copy link

fkohrt commented Jul 9, 2024

Describe the problem

Running the Shiny code from the documentation's front page with the following options...

options(warnPartialMatchArgs = TRUE,
        warnPartialMatchDollar = TRUE,
        warnPartialMatchAttr = TRUE,
        warn = 2,
        lifecycle_verbosity = "error")
Code

thematic/README.Rmd

Lines 71 to 116 in b7ec742

library(shiny)
library(ggplot2)
library(thematic)
# In order for auto/custom fonts to work properly, you'll want
# either the ragg (or showtext) package installed
library(ragg)
# If you want `{ragg}` to handle the font rendering in a Shiny app
options(shiny.useragg = TRUE)
# Call thematic_shiny() prior to launching the app, to change
# R plot theming defaults for all the plots generated in the app
thematic_shiny(font = "auto")
ui <- fluidPage(
# bslib makes it easy to customize CSS styles for things
# rendered by the browser, like tabsetPanel()
# https://rstudio.github.io/bslib
theme = bslib::bs_theme(
bg = "#002B36", fg = "#EEE8D5", primary = "#2AA198",
# bslib also makes it easy to import CSS fonts
base_font = bslib::font_google("Pacifico")
),
tabsetPanel(
type = "pills",
tabPanel("ggplot", plotOutput("ggplot")),
tabPanel("lattice", plotOutput("lattice")),
tabPanel("base", plotOutput("base"))
)
)
server <- function(input, output) {
output$ggplot <- renderPlot({
ggplot(mtcars, aes(wt, mpg, label = rownames(mtcars), color = factor(cyl))) +
geom_point() +
ggrepel::geom_text_repel()
})
output$lattice <- renderPlot({
lattice::show.settings()
})
output$base <- renderPlot({
image(volcano, col = thematic_get_option("sequential"))
})
}
shinyApp(ui, server)

...leads to the following error:

Error : `match_font()` was deprecated in systemfonts 1.1.0.
ℹ Please use `match_fonts()` instead.

Session Info


─ Session info ─────────────────────────────────────────────────────────
 setting  value
 version  R version 4.4.1 (2024-06-14)
 os       Ubuntu 20.04.6 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language (EN)
 collate  C.UTF-8
 ctype    C.UTF-8
 tz       UTC
 date     2024-07-09
 rstudio  2023.12.1+402.pro1 Ocean Storm (server)
 pandoc   NA

─ Packages ─────────────────────────────────────────────────────────────
package * version date (UTC) lib source
bslib 0.7.0 2024-03-29 [1] RSPM (R 4.4.0)
cachem 1.1.0 2024-05-16 [1] RSPM (R 4.4.0)
cli 3.6.3 2024-06-21 [1] RSPM (R 4.4.0)
colorspace 2.1-0 2023-01-23 [1] RSPM (R 4.4.0)
devtools 2.4.5 2022-10-11 [1] RSPM (R 4.4.0)
digest 0.6.36 2024-06-23 [1] RSPM (R 4.4.0)
distributional 0.4.0 2024-02-07 [1] RSPM (R 4.4.0)
dplyr * 1.1.4 2023-11-17 [1] RSPM (R 4.4.0)
ellipsis 0.3.2 2021-04-29 [1] RSPM (R 4.4.0)
fansi 1.0.6 2023-12-08 [1] RSPM (R 4.4.0)
farver 2.1.2 2024-05-13 [1] RSPM (R 4.4.0)
fastmap 1.2.0 2024-05-15 [1] RSPM (R 4.4.0)
fs 1.6.4 2024-04-25 [1] RSPM (R 4.4.0)
generics 0.1.3 2022-07-05 [1] RSPM (R 4.4.0)
ggdist 3.3.2 2024-03-05 [1] RSPM (R 4.4.0)
ggplot2 * 3.5.1 2024-04-23 [1] RSPM (R 4.4.0)
ggrepel 0.9.5 2024-01-10 [1] RSPM (R 4.4.0)
glue 1.7.0 2024-01-09 [1] RSPM (R 4.4.0)
gtable 0.3.5 2024-04-22 [1] RSPM (R 4.4.0)
htmltools 0.5.8.1 2024-04-04 [1] RSPM (R 4.4.0)
htmlwidgets 1.6.4 2023-12-06 [1] RSPM (R 4.4.0)
httpuv 1.6.15 2024-03-26 [1] RSPM (R 4.4.0)
imola * 0.5.0 2022-04-19 [1] RSPM (R 4.4.0)
jquerylib 0.1.4 2021-04-26 [1] RSPM (R 4.4.0)
jsonlite 1.8.8 2023-12-04 [1] RSPM (R 4.4.0)
knitr 1.47 2024-05-29 [1] RSPM (R 4.4.0)
labeling 0.4.3 2023-08-29 [1] RSPM (R 4.4.0)
later 1.3.2 2023-12-06 [1] RSPM (R 4.4.0)
lattice 0.22-6 2024-03-20 [2] CRAN (R 4.4.1)
lifecycle 1.0.4 2023-11-07 [1] RSPM (R 4.4.0)
magrittr 2.0.3 2022-03-30 [1] RSPM (R 4.4.0)
memoise 2.0.1 2021-11-26 [1] RSPM (R 4.4.0)
mime 0.12 2021-09-28 [1] RSPM (R 4.4.0)
miniUI 0.1.1.1 2018-05-18 [1] RSPM (R 4.4.0)
munsell 0.5.1 2024-04-01 [1] RSPM (R 4.4.0)
pillar 1.9.0 2023-03-22 [1] RSPM (R 4.4.0)
pkgbuild 1.4.4 2024-03-17 [1] RSPM (R 4.4.0)
pkgconfig 2.0.3 2019-09-22 [1] RSPM (R 4.4.0)
pkgload 1.4.0 2024-06-28 [1] RSPM (R 4.4.0)
profvis 0.3.8 2023-05-02 [1] RSPM (R 4.4.0)
promises 1.3.0 2024-04-05 [1] RSPM (R 4.4.0)
purrr * 1.0.2 2023-08-10 [1] RSPM (R 4.4.0)
R6 2.5.1 2021-08-19 [1] RSPM (R 4.4.0)
ragg * 1.3.2 2024-05-15 [1] RSPM (R 4.4.0)
rappdirs 0.3.3 2021-01-31 [1] RSPM (R 4.4.0)
Rcpp 1.0.12 2024-01-09 [1] RSPM (R 4.4.0)
remotes 2.5.0 2024-03-17 [1] RSPM (R 4.4.0)
rlang 1.1.4 2024-06-04 [1] RSPM (R 4.4.0)
rstudioapi 0.16.0 2024-03-24 [1] RSPM (R 4.4.0)
sass * 0.4.9 2024-03-15 [1] RSPM (R 4.4.0)
scales 1.3.0 2023-11-28 [1] RSPM (R 4.4.0)
sessioninfo 1.2.2 2021-12-06 [1] RSPM (R 4.4.0)
shiny * 1.8.1.1 2024-04-02 [1] RSPM (R 4.4.0)
shiny.fluent * 0.4.0 2024-05-21 [1] RSPM (R 4.4.0)
shiny.react 0.4.0 2024-05-20 [1] RSPM (R 4.4.0)
shiny.router * 0.3.1 2023-04-18 [1] RSPM (R 4.4.0)
shiny.semantic * 0.5.1 2024-04-05 [1] RSPM (R 4.4.0)
shinyjs * 2.1.0 2021-12-23 [1] RSPM (R 4.4.0)
stringi * 1.8.4 2024-05-06 [1] RSPM (R 4.4.0)
stringr 1.5.1 2023-11-14 [1] RSPM (R 4.4.0)
systemfonts 1.1.0 2024-05-15 [1] RSPM (R 4.4.0)
textshaping 0.4.0 2024-05-24 [1] RSPM (R 4.4.0)
thematic * 0.1.5.9000 2024-07-09 [1] Github (rstudio/thematic@b7ec742)
tibble 3.2.1 2023-03-20 [1] RSPM (R 4.4.0)
tidyselect 1.2.1 2024-03-11 [1] RSPM (R 4.4.0)
urlchecker 1.0.1 2021-11-30 [1] RSPM (R 4.4.0)
usethis 2.2.3 2024-02-19 [1] RSPM (R 4.4.0)
utf8 1.2.4 2023-10-22 [1] RSPM (R 4.4.0)
vctrs 0.6.5 2023-12-01 [1] RSPM (R 4.4.0)
withr 3.0.0 2024-01-16 [1] RSPM (R 4.4.0)
xfun 0.45 2024-06-16 [1] RSPM (R 4.4.0)
xtable 1.8-4 2019-04-21 [1] RSPM (R 4.4.0)
yaml 2.3.8 2023-12-11 [1] RSPM (R 4.4.0)

[1] /cloud/lib/x86_64-pc-linux-gnu-library/4.4
[2] /opt/R/4.4.1/lib/R/library

────────────────────────────────────────────────────────────────────────

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant