CRAN Package Check Results for Package GGally

Last updated on 2025-12-06 00:48:43 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.4.0 13.18 282.61 295.79 OK
r-devel-linux-x86_64-debian-gcc 2.4.0 9.86 164.14 174.00 ERROR
r-devel-linux-x86_64-fedora-clang 2.4.0 66.00 439.28 505.28 OK
r-devel-linux-x86_64-fedora-gcc 2.4.0 90.00 443.35 533.35 OK
r-devel-windows-x86_64 2.4.0 16.00 272.00 288.00 OK
r-patched-linux-x86_64 2.4.0 17.60 265.48 283.08 OK
r-release-linux-x86_64 2.4.0 13.79 269.25 283.04 OK
r-release-macos-arm64 2.4.0 OK
r-release-macos-x86_64 2.4.0 12.00 226.00 238.00 OK
r-release-windows-x86_64 2.4.0 17.00 264.00 281.00 OK
r-oldrel-macos-arm64 2.4.0 OK
r-oldrel-macos-x86_64 2.4.0 11.00 202.00 213.00 OK
r-oldrel-windows-x86_64 2.4.0 22.00 370.00 392.00 OK

Check Details

Version: 2.4.0
Check: examples
Result: ERROR Running examples in ‘GGally-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ggnetworkmap > ### Title: Network plot map overlay > ### Aliases: ggnetworkmap > > ### ** Examples > > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > # small function to display plots only if it's interactive > p_ <- GGally::print_if_interactive > > invisible(lapply(c("ggplot2", "maps", "network", "sna"), base::library, character.only = TRUE)) ‘network’ 1.19.0 (2024-12-08), part of the Statnet Project * ‘news(package="network")’ for changes since last version * ‘citation("network")’ for citation information * ‘https://statnet.org’ for help, support, and other information Loading required package: statnet.common Attaching package: ‘statnet.common’ The following objects are masked from ‘package:base’: attr, order, replace sna: Tools for Social Network Analysis Version 2.8 created on 2024-09-07. copyright (c) 2005, Carter T. Butts, University of California-Irvine For citation information, type citation("sna"). Type help(package="sna") to get started. > > ## Example showing great circles on a simple map of the USA > if (require(airports) && require(network) && require(sna)) { + dms_to_number <- function(dms) { + parts <- strsplit(dms, "-")[[1]] + degrees <- as.numeric(parts[1]) + minutes <- as.numeric(parts[2]) / 60 + seconds <- as.numeric(sub(parts[3], pattern = "N|W", replacement = "")) / 3600 + direction <- if (grepl("W", parts[3])) -1 else 1 + return(direction * (degrees + minutes + seconds)) + } + airports <- + airports::usairports |> + filter( + !is.na(cert_type_date), + grepl("N", arp_latitude), + grepl("W", arp_longitude) + ) |> + mutate( + lat = vapply(arp_latitude, dms_to_number, numeric(1)), + long = vapply(arp_longitude, dms_to_number, numeric(1)) + ) |> + as.data.frame() + rownames(airports) <- airports$location_id + + # select some random flights + set.seed(123) + flights <- data.frame( + origin = sample(airports[200:400, ]$location_id, 200, replace = TRUE), + destination = sample(airports[200:400, ]$location_id, 200, replace = TRUE) + ) + + # convert to network + flights <- network::network(flights, directed = TRUE) + + # add geographic coordinates + flights %v% "lat" <- airports[network.vertex.names(flights), "lat"] + flights %v% "lon" <- airports[network.vertex.names(flights), "long"] + + # drop isolated airports + network::delete.vertices(flights, which(sna::degree(flights) < 2)) + + # compute degree centrality + flights %v% "degree" <- sna::degree(flights, gmode = "digraph") + + # add random groups + flights %v% "mygroup" <- sample(letters[1:4], network.size(flights), replace = TRUE) + + # create a map of the USA + usa <- ggplot(map_data("usa"), aes(x = long, y = lat)) + + geom_polygon(aes(group = group), + color = "grey65", + fill = "#f9f9f9", linewidth = 0.2 + ) + + # overlay network data to map + p <- ggnetworkmap( + usa, flights, + size = 4, great.circles = TRUE, + node.group = mygroup, segment.color = "steelblue", + ring.group = degree, weight = degree + ) + + coord_map("albers", lat0 = 45.5, lat1 = 29.5) + p_(p) + + ## Exploring a community of spambots found on Twitter + ## Data by Amos Elberg: see ?twitter_spambots for details + + data(twitter_spambots) + + # create a world map + world <- fortify(map("world", plot = FALSE, fill = TRUE)) + world <- ggplot(world, aes(x = long, y = lat)) + + geom_polygon(aes(group = group), + color = "grey65", + fill = "#f9f9f9", linewidth = 0.2 + ) + + # view global structure + p <- ggnetworkmap(world, twitter_spambots) + p_(p) + + # domestic distribution + p <- ggnetworkmap(net = twitter_spambots) + p_(p) + + # topology + p <- ggnetworkmap(net = twitter_spambots, arrow.size = 0.5) + p_(p) + + # compute indegree and outdegree centrality + twitter_spambots %v% "indegree" <- sna::degree(twitter_spambots, cmode = "indegree") + twitter_spambots %v% "outdegree" <- sna::degree(twitter_spambots, cmode = "outdegree") + + p <- ggnetworkmap( + net = twitter_spambots, + arrow.size = 0.5, + node.group = indegree, + ring.group = outdegree, size = 4 + ) + + scale_fill_continuous("Indegree", high = "red", low = "yellow") + + labs(color = "Outdegree") + p_(p) + + # show some vertex attributes associated with each account + p <- ggnetworkmap( + net = twitter_spambots, + arrow.size = 0.5, + node.group = followers, + ring.group = friends, + size = 4, + weight = indegree, + label.nodes = TRUE, vjust = -1.5 + ) + + scale_fill_continuous("Followers", high = "red", low = "yellow") + + labs(color = "Friends") + + scale_color_continuous(low = "lightgreen", high = "darkgreen") + p_(p) + } Loading required package: airports Error in ggnetworkmap(usa, flights, size = 4, great.circles = TRUE, node.group = mygroup, : The package "geosphere" is required. Calls: ggnetworkmap -> <Anonymous> Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.4.0
Check: HTML version of manual
Result: NOTE Skipping checking math rendering: package 'V8' unavailable Flavor: r-devel-linux-x86_64-debian-gcc