Skip to content

Commit

Permalink
update to workflow; added \donttest where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChristensen committed Aug 10, 2023
1 parent 7015c5e commit 2542720
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ jobs:
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
install-ghostscript: true
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand All @@ -48,4 +47,5 @@ jobs:

- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran")'
upload-snapshots: true
2 changes: 1 addition & 1 deletion R/S3plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
#' \emph{For more worked examples than below, see \href{https://tinyurl.com/plots-in-eganet}{Plots in \{EGAnet\}}}
#'
#' @examples
#' \dontrun{
#' \donttest{
#' # Using different arguments in {GGally}'s `ggnet2`
#' plot(ega.wmt, node.size = 6, edge.size = 4)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/compare.EGA.plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#' ega1 <- EGA(sample1)
#' ega2 <- EGA(sample2)
#'
#' \dontrun{
#' \donttest{
#' # Compare EGAs via plot
#' compare.EGA.plots(
#' ega1, ega2,
Expand Down
5 changes: 4 additions & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ restore_state <- function()

#' @noRd
# Wrapper for parallelization ----
# Updated 03.08.2023
# Updated 10.08.2023
parallel_process <- function(
iterations, # number of iterations
datalist = NULL, # list of data
Expand Down Expand Up @@ -682,6 +682,9 @@ parallel_process <- function(

}

# Force close of connections
future::plan(strategy = "sequential")

# Return results
return(results)

Expand Down
2 changes: 1 addition & 1 deletion R/hierEGA.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
#' plot.EGA = FALSE # No plot for CRAN checks
#' )
#'
#' \dontrun{
#' \donttest{
#' # Plot multilevel plot
#' plot(opt.hier, plot.type = "multilevel")
#'
Expand Down
2 changes: 1 addition & 1 deletion R/jsd.ergoInfo.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#' Values can range between 0 and 1
#'
#' @examples
#' \dontrun{
#' \donttest{
#' # Dynamic EGA individual and population structures
#' dyn1 <- dynEGA.ind.pop(
#' data = sim.dynEGA[,-26], n.embed = 5, tau = 1,
Expand Down
2 changes: 1 addition & 1 deletion man/EGAnet-plot.Rd

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

2 changes: 1 addition & 1 deletion man/compare.EGA.plots.Rd

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

2 changes: 1 addition & 1 deletion man/hierEGA.Rd

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

0 comments on commit 2542720

Please sign in to comment.