Skip to content

Commit c959bba

Browse files
zorroozclaude
andcommitted
fix: use dontrun instead of donttest for relation mark examples
These marks depend on optional packages (ggsankey, circlize, ggraph, etc.) that may not be installed during R CMD check --run-donttest. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a2c5c15 commit c959bba

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

R/mark.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ S7::method(mark_dumbbell, plotit_class) <- function(
11171117
#' @references
11181118
#' AntV G2: \href{https://g2.antv.antgroup.com/en/api/mark/beeswarm}{Beeswarm} (corelib)
11191119
#' @examples
1120-
#' \donttest{
1120+
#' \dontrun{
11211121
#' if (requireNamespace("ggbeeswarm", quietly = TRUE)) {
11221122
#' plotit(iris, encode(x = Species, y = Sepal.Length)) |>
11231123
#' mark_beeswarm()
@@ -1173,7 +1173,7 @@ S7::method(mark_beeswarm, plotit_class) <- function(
11731173
#' @references
11741174
#' AntV G2: \href{https://g2.antv.antgroup.com/en/api/mark/sankey}{Sankey} (graphlib)
11751175
#' @examples
1176-
#' \donttest{
1176+
#' \dontrun{
11771177
#' if (requireNamespace("ggsankey", quietly = TRUE)) {
11781178
#' df <- ggsankey::make_long(ggplot2::diamonds, cut, color)
11791179
#' plotit(df, encode(x = x, next_x = next_x, node = node,
@@ -1246,7 +1246,7 @@ S7::method(mark_sankey, plotit_class) <- function(
12461246
#' @references
12471247
#' AntV G2: \href{https://g2.antv.antgroup.com/en/api/mark/treemap}{Treemap} (graphlib)
12481248
#' @examples
1249-
#' \donttest{
1249+
#' \dontrun{
12501250
#' if (requireNamespace("treemapify", quietly = TRUE)) {
12511251
#' df <- data.frame(
12521252
#' group = c("A", "B", "C"),
@@ -1313,7 +1313,7 @@ S7::method(mark_treemap, plotit_class) <- function(
13131313
#' @references
13141314
#' AntV G2: \href{https://g2.antv.antgroup.com/en/api/mark/force-graph}{ForceGraph} (graphlib)
13151315
#' @examples
1316-
#' \donttest{
1316+
#' \dontrun{
13171317
#' if (requireNamespace("ggraph", quietly = TRUE) &&
13181318
#' requireNamespace("igraph", quietly = TRUE)) {
13191319
#' gr <- igraph::sample_pa(30)
@@ -1385,7 +1385,7 @@ S7::method(mark_network, plotit_class) <- function(
13851385
#' @references
13861386
#' AntV G2: \href{https://g2.antv.antgroup.com/en/api/mark/chord}{Chord} (graphlib)
13871387
#' @examples
1388-
#' \donttest{
1388+
#' \dontrun{
13891389
#' if (requireNamespace("circlize", quietly = TRUE)) {
13901390
#' mat <- matrix(c(0, 5, 3, 2, 0, 4, 1, 3, 0), nrow = 3)
13911391
#' rownames(mat) <- colnames(mat) <- c("A", "B", "C")

man/mark_beeswarm.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mark_chord.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mark_network.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mark_sankey.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mark_treemap.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)