diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aece60..c2fe87e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/DESCRIPTION b/DESCRIPTION index 89506ca..365f70e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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="g.vegayon@gmail.com", role=c("aut", "cre"), comment = structure("0000-0002-3171-0844", .Names = "ORCID")), @@ -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: diff --git a/NEWS.md b/NEWS.md index 11380cc..819493e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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