Skip to content

Commit

Permalink
Preparing for CRAN patch
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 27, 2024
1 parent 5c96d09 commit bb9ad15
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 37 deletions.
89 changes: 62 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,76 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
# NOTE: This workflow is overkill for most R packages and
# check-standard.yaml is likely a better choice.
# usethis::use_github_action("check-standard") will install it.
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R CI
name: R-CMD-check-final

on: [push, pull_request]

env:
REPO: gvegayon/rgexf
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

jobs:
build:
runs-on: Ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: release
cmd : R
cntr: ${REPO}:latest
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'devel', http-user-agent: 'release'}
- {os: windows-latest, r: 'devel', http-user-agent: 'release'}
# Use older ubuntu to maximise backward compatibility
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- name: Container
run: docker pull ${{ matrix.cntr }}
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: SessionInfo
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{ matrix.cmd }} -q -e 'sessionInfo()'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- name: Build
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${{ matrix.cntr }} ${{ matrix.cmd }} CMD build --no-build-vignettes --no-manual .
- uses: r-lib/actions/check-r-package@v2
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' }}
with:
args: 'c("--as-cran", "--no-manual")'
upload-snapshots: false
upload-results: false
check-dir: '"check"'
error-on: '"warning"'

- name: Check
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt -e CI=true ${{ matrix.cntr }} ${{ matrix.cmd }} CMD check --no-vignettes --no-manual rgexf_*.tar.gz
- uses: r-lib/actions/check-r-package@v2
if: ${{ matrix.config.os != 'ubuntu-latest' || matrix.config.r != 'release' }}
with:
upload-snapshots: false
upload-results: false
check-dir: '"check"'
error-on: '"warning"'

# Upload the built package as an artifact
- uses: actions/upload-artifact@v2
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' }}
with:
name: ${{ matrix.config.os }}-pkg
path: ${{ github.workspace }}/*.tar.gz
14 changes: 4 additions & 10 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Package: rgexf
Type: Package
Encoding: UTF-8
Title: Build, Import and Export GEXF Graph Files
Version: 0.16.2
Date: 2021-08-10
Title: Build, Import, and Export GEXF Graph Files
Version: 0.17.0
Date: 2024-06-27
Authors@R: c(
person("George", "Vega Yon", email="[email protected]", role=c("aut", "cre"),
comment = structure("0000-0002-3171-0844", .Names = "ORCID")),
Expand All @@ -14,13 +14,7 @@ Authors@R: c(
person("Cornelius", "Fritz", role = "rev", comment = c(what = "JOSS reviewer")),
person("Jonathan", "Cardoso Silva", role = "rev", comment = c(what = "JOSS reviewer"))
)
Description: Create, read and write 'GEXF' (Graph Exchange 'XML' Format) graph
files (used in 'Gephi' and others). Using the 'XML' package, it allows the user to
easily build/read graph files including attributes, 'GEXF' visual attributes (such
as color, size, and position), network dynamics (for both edges and nodes) and
edge weighting. Users can build/handle graphs element-by-element or massively
through data-frames, visualize the graph on a web browser through 'gexf-js' (a
'javascript' library) and interact with the 'igraph' package.
Description: Create, read, and write 'GEXF' (Graph Exchange 'XML' Format) graph files (used in 'Gephi' and others). Using the 'XML' package, rgexf allows easily build and read graph files, including attributes, 'GEXF' visual attributes (such as color, size, and position), network dynamics (for both edges and nodes), and edges' weights. Users can build/handle graphs element-by-element or massively through data frames, visualize the graph on a web browser through 'gexf-js' (a 'javascript' library), and interact with the 'igraph' package.
URL: https://gvegayon.github.io/rgexf/
BugReports: https://github.com/gvegayon/rgexf/issues
Imports:
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Changes in rgexf version 0.17.0 (2024-06-27)

TBD


# Changes in rgexf version 0.16.2 (2021-08-10)

## New features and changes
Expand Down

0 comments on commit bb9ad15

Please sign in to comment.