Skip to content

Commit

Permalink
Remove grConvert
Browse files Browse the repository at this point in the history
  • Loading branch information
cgoo4 committed May 22, 2024
1 parent 5f11f40 commit 308c363
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Suggests:
dplyr,
ggimage,
ggtext,
grConvert,
gt,
knitr,
patchwork,
Expand Down
12 changes: 6 additions & 6 deletions data-raw/DATASET.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ svg_names <- grep(
svg_paths <- paste0("inst/extdata/", svg_names)

# Convert raw svg to cairo
for (i in svg_paths) {
s <- sub(".svg", "-cairo.svg", i)
if (!file.exists(s)) {
grConvert::convertPicture(i, s)
}
}
# for (i in svg_paths) {
# s <- sub(".svg", "-cairo.svg", i)
# if (!file.exists(s)) {
# grConvert::convertPicture(i, s)
# }
# }

# Remove raw svg
file.remove(svg_paths)
Expand Down

0 comments on commit 308c363

Please sign in to comment.