Closed sanjmeh closed 2 years ago
Howdy!
Can you try installing svglite binary from RStudio Package Manager rather than from source?
https://packagemanager.rstudio.com/client/#/repos/1/packages/svglite
You're getting a general svglite installation/compilation issue.
I installed svglite as advised above using install.packages('svglite', type = 'source')
but the error persisists. And after posting the above, I see a larger issue in most of gtExtras functions failing. I tried a few and get the following errors,
mtcars %>%
dplyr::group_by(cyl) %>%
# must end up with list of data for each row in the input dataframe
dplyr::summarize(mpg_data = list(mpg), .groups = "drop") |> gt() |> gt_sparkline()
Error: lazy-load database '/home/sanjay/R/x86_64-pc-linux-gnu-library/4.1/gtExtras/R/gtExtras.rdb' is corrupt In addition: Warning messages: 1: restarting interrupted promise evaluation 2: internal error -3 in R_decompress1
plyr::tibble(x = c(seq(1.2e6, 2e6, length.out = 5))) %>%
+ gt::gt() %>%
+ gt_duplicate_column(x,dupe_name = "point_plot")
Error in dplyr::tibble(x = c(seq(1200000, 2e+06, length.out = 5))) %>% : lazy-load database '/home/sanjay/R/x86_64-pc-linux-gnu-library/4.1/gtExtras/R/gtExtras.rdb' is corrupt
Many functions are giving the gtExtras.rdb is corrupt
error
Oh, restarting R set things right. I am so sorry I didn;t restart R before raising the issue here. I will close this in a few hours if I donot get the same error again.
Glad to hear it was resolved! In general if you're getting "corrupt" errors like that it's a good idea to restart R and install fresh.
Also especially on Linux try installing from our free Package Manager rather than from source, it will be faster and less error prone.
https://packagemanager.rstudio.com/client/#/repos/1/packages/gtExtras
Closing for now - sounds like it has been resolved. Thanks!
Prework
I searched the error and did following recommended steps but it did not solve the problem.
stringi
remotes::install_github("jthomasmock/gtExtras")
Description
The vignette example of
gt_plt_bullet
fails to run on my machine, and gives following error.I have R installed on Ubuntu 20 server.
Reproducible example
Expected result
Session info