Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: autograph
Title: Automatic Plotting and Theming of Many Graphs
Version: 1.0.2
Date: 2026-04-30
Version: 1.0.3
Date: 2026-05-01
Description: Visual exploration and presentation of networks should not be difficult.
This package includes functions for plotting networks and network-related metrics with sensible and pretty defaults.
It includes 'ggplot2'-based plot methods for many popular network package classes.
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export(layout_tbl_graph_valence)
export(layout_tetrad)
export(layout_triad)
export(layout_valence)
export(load_ergm_res)
export(match_color)
export(scale_colour_hue)
export(scale_size)
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# autograph 1.0.3

## Plotting

- Fixed the error produced by a namespace reference in a call in `ergm_res` by serializing it, moving to extdata, and loading it via `load_ergm_res()`

# autograph 1.0.2

## Plotting
Expand Down
6 changes: 0 additions & 6 deletions R/data_precooked.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@

# ERGM objects ####

#' @docType data
#' @keywords datasets
#' @rdname made_earlier
#' @usage data(ergm_res)
"ergm_res"

#' @docType data
#' @keywords datasets
#' @rdname made_earlier
Expand Down
7 changes: 7 additions & 0 deletions R/plot_convergence.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ plot.traces.monan <- function(x, ...) {
#' @rdname plot_convergence
#' @family ergm
#' @examples
#' ergm_res <- load_ergm_res()
#' plot(ergm_res)
#' @export
plot.ergm <- function(x, ...) {
Expand All @@ -81,3 +82,9 @@ plot.ergm <- function(x, ...) {
plot.ag_conv(dat)
}

#' @rdname plot_convergence
#' @export
load_ergm_res <- function() {
readRDS(file = system.file("extdata", "ergm_res.rds", package = "autograph"))
}
Comment on lines +85 to +89

2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

0 errors | 0 warnings | 0 notes

- Fixed the error in some flavours by removing environment references in included objects
- Fixed the error in some flavours by moving offending data to inst/extdata
Binary file removed data/ergm_res.rda
Binary file not shown.
Binary file added inst/extdata/ergm_res.rds
Binary file not shown.
5 changes: 0 additions & 5 deletions man/made_earlier.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/plot_convergence.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/testthat/test-plot_convergence.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ test_that("monan diagnostics works", {

test_that("ergm diagnostics works", {
skip_on_os("linux") # CRAN R CMD check issue
ergm_res <- load_ergm_res()
p <- plot(ergm_res)
expect_s3_class(p, "ggplot")
})
Loading