Skip to content

Commit

Permalink
Remove crayon from suggested packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Dec 19, 2023
1 parent ab55459 commit a0a5d6d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 26 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Imports:
stats,
utils
Suggests:
crayon,
ggplot2,
ggraph,
knitr,
Expand Down
12 changes: 1 addition & 11 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,5 @@

#' @export
print.color_scheme <- function(x, ...) {
if (requireNamespace("crayon", quietly = TRUE) &&
getOption("crayon.enabled", default = FALSE)) {
styled <- vapply(
X = x,
FUN = function(x) crayon::make_style(x, bg = TRUE)(x),
FUN.VALUE = character(1)
)
cat(styled)
} else {
print(unclass(x))
}
print(unclass(x))
}
14 changes: 1 addition & 13 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "crayon",
"name": "crayon",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=crayon"
},
{
"@type": "SoftwareApplication",
"identifier": "ggplot2",
Expand Down Expand Up @@ -240,7 +228,7 @@
},
"SystemRequirements": null
},
"fileSize": "1364.145KB",
"fileSize": "1385.973KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
1 change: 0 additions & 1 deletion inst/tinytest/test_colour.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
options(crayon.enabled = FALSE)
pal <- info()

# Palette colours ==============================================================
Expand Down

0 comments on commit a0a5d6d

Please sign in to comment.