Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
704f08b
Updated rproj
jhollway Feb 9, 2025
daef54f
Updates to memberships datacube
jaeltan May 8, 2025
1efacf3
Updates to organizations datacube
jaeltan May 8, 2025
d5aa27d
Removed unused tests for now
jaeltan May 8, 2025
5d0cb56
Merge branch 'develop' of https://github.com/globalgov/manyigos into …
jhollway May 19, 2025
89d2d8e
Added new logo
jaeltan May 27, 2025
8b1949d
Added memberships datacube to pkgdown and replaced old packages with …
jaeltan May 27, 2025
aab4b8d
Updated news
jaeltan May 27, 2025
00e1693
Added website documents
jaeltan May 27, 2025
1ed39f6
Updated version number and date
jaeltan May 27, 2025
c7e3a73
updated workflows
jaeltan May 28, 2025
c3daff7
corrected package name in workflows
jaeltan May 28, 2025
da2b6db
Added dependencies to pass checks
jaeltan May 28, 2025
62faab2
Updated citation
jaeltan May 28, 2025
6847c23
Updated news with closed issue number
jaeltan May 28, 2025
95a7696
IIGO memberships
jhollway May 30, 2025
81e3016
Updated organizations documentation
jhollway May 30, 2025
75ec2e2
Adding tests for individual datasets
jhollway May 30, 2025
9534b86
Updated memberships documentation
jhollway May 30, 2025
4cb874f
Added alternative members datacube
jhollway May 30, 2025
67916ca
Added alternative orgs datacube
jhollway May 30, 2025
ee593ab
Skip COW tests
jhollway May 30, 2025
6cc8fc1
Dropped alt datacubes
jhollway May 30, 2025
5233936
Dropped unnecessary tests
jhollway May 30, 2025
c2a55e7
Setup for source/citation info on organizations and memberships, TODO…
jhollway May 30, 2025
a229d17
Dropped unnecessary Imports
jhollway May 30, 2025
39bae22
Ignore documentation/website pages
jhollway May 30, 2025
c551bc6
Setup pkgdown
jhollway May 30, 2025
d471979
usethis:: put _pkgdown in wrong place
jhollway May 30, 2025
c4fd450
Reexported manydata::consolidate to avoid non-use warning
jhollway May 30, 2025
8f478e7
Added IIGO sources to organizations and memberships
jhollway May 30, 2025
19a49bc
testthat in parallel
jhollway Jun 1, 2025
4c83e2e
Added code_orgs()
jhollway Jun 1, 2025
9d2ac2a
Check for orgIDs being unique
jhollway Jun 1, 2025
2ac240a
Test for org codes being upper case
jhollway Jun 1, 2025
32f5fb6
Test for orgIDs being between 4 and 5 characters
jhollway Jun 1, 2025
8d2464f
Added A orgs
jhollway Jun 1, 2025
7a9749f
Added B orgs
jhollway Jun 1, 2025
8c16536
Added D-Z orgs
jhollway Jun 1, 2025
b61704e
Added W orgs
jhollway Jun 1, 2025
3055260
Added U orgs
jhollway Jun 1, 2025
59305ab
Added R orgs
jhollway Jun 1, 2025
fdc6781
Added O orgs
jhollway Jun 1, 2025
3f5ad90
Added L orgs
jhollway Jun 1, 2025
a0a0896
Added G orgs
jhollway Jun 1, 2025
238b3d4
Added E orgs
jhollway Jun 1, 2025
714f9b6
Added M orgs
jhollway Jun 1, 2025
76cb466
Added N orgs
jhollway Jun 1, 2025
316ce51
Added S orgs
jhollway Jun 1, 2025
e980db2
Added P orgs
jhollway Jun 1, 2025
77836b5
Added C orgs
jhollway Jun 1, 2025
e26df91
Added I orgs
jhollway Jun 1, 2025
db58c51
Added documentation for code_orgs()
jhollway Jun 1, 2025
6f0a6f7
code_orgs() uses orgnames as search terms for now
jhollway Jun 1, 2025
6b1472a
United Nations ordID is now UNORG
jhollway Jun 1, 2025
d1508f7
Fixed dependencies warnings
jhollway Jun 1, 2025
3080803
Avoid using dplyr in tests
jhollway Jun 1, 2025
a76a091
Re-sized logos to make them larger
jaeltan Jun 2, 2025
2a2e790
Added source and citation information for datasets
jaeltan Jun 2, 2025
8d7fd24
Re-rendered documenation
jaeltan Jun 2, 2025
8a4a6cc
Added code_orgs to website
jaeltan Jun 2, 2025
05b5ec4
Fixed image size issue for logo
jaeltan Jun 2, 2025
fabfb15
Updated news
jaeltan Jun 2, 2025
5516a43
Standardised readme
jaeltan Jun 2, 2025
5d3df48
Changed package name
jaeltan Jun 2, 2025
49eb156
Updated package name in NEWS
jaeltan Jun 2, 2025
b9b8c87
Updated docs for website
jaeltan Jun 2, 2025
e8733e6
Updated rproj name
jhollway Jun 2, 2025
c3e95e5
Fixed non-ASCII bug in source
jhollway Jun 2, 2025
1e1a8d3
Updated documentation
jhollway Jun 2, 2025
289a6f4
Fixed testthat error
jhollway Jun 2, 2025
c7ccb2e
Added back default patch bump in workflow
jaeltan Jun 2, 2025
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
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
^data-raw/organizations$
^.DS_Store
^data-raw/memberships$
^_pkgdown\.yml$
^docs$
^pkgdown$
15 changes: 7 additions & 8 deletions .github/workflows/prchecks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
on:
pull_request:
branches:
- master
- main

name: Binary checks
Expand All @@ -11,14 +10,13 @@ jobs:
build:
name: Build for ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release', artifact_name: '*.tar.gz', asset_name: macOS}
- {os: macOS-latest, r: 'release', artifact_name: '*.tar.gz', asset_name: macOS}
- {os: windows-latest, r: 'release', artifact_name: '*.zip', asset_name: winOS}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest", artifact_name: '*.tar.gz', asset_name: linuxOS}
- {os: ubuntu-latest, r: 'release', artifact_name: '*.tar.gz', asset_name: linuxOS}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand All @@ -37,11 +35,9 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
needs: check, build
extra-packages: |
any::rcmdcheck
any::lintr
any::spelling
needs: check

- uses: r-lib/actions/check-r-package@v2
env:
Expand All @@ -58,11 +54,14 @@ jobs:
shell: Rscript {0}

- name: Save binary artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.asset_name }}
path: build/

- name: Calculate code coverage
run: Rscript -e "covr::codecov()"

- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
Expand Down
157 changes: 56 additions & 101 deletions .github/workflows/pushrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ on:
push:
branches:
- main
- master

name: Check and release

Expand All @@ -11,14 +10,13 @@ jobs:
build:
name: Build for ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release', artifact_name: '*.tar.gz', asset_name: macOS}
- {os: macOS-latest, r: 'release', artifact_name: '*.tar.gz', asset_name: macOS}
- {os: windows-latest, r: 'release', artifact_name: '*.zip', asset_name: winOS}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest", artifact_name: '*.tar.gz', asset_name: linuxOS}
- {os: ubuntu-latest, r: 'release', artifact_name: '*.tar.gz', asset_name: linuxOS}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand All @@ -37,10 +35,10 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
needs: check, build
extra-packages: |
any::rcmdcheck
any::remotes
needs: check

- uses: r-lib/actions/check-r-package@v2
env:
Expand All @@ -57,95 +55,80 @@ jobs:
shell: Rscript {0}

- name: Save binary artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.asset_name }}
path: build/

- name: Calculate code coverage
if: runner.os == 'macOS-latest'
run: Rscript -e "covr::codecov()"

release:
name: Bump version and release
if: ${{ always() }}
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout one
uses: actions/checkout@master
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Bump version and push tag
id: newtag
uses: anothrNick/github-tag-action@1.39.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch

RELEASE_BRANCHES: main
- name: Checkout two
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Extract version
run: |
echo "PACKAGE_VERSION=$(grep '^Version' DESCRIPTION | sed 's/.*: *//')" >> $GITHUB_ENV
echo "PACKAGE_NAME=$(grep '^Package' DESCRIPTION | sed 's/.*: *//')" >> $GITHUB_ENV

- name: Download binaries
uses: actions/download-artifact@v4

- name: Create Release
- name: Rename binaries release
shell: bash
run: |
ls -R
cp ./macOS/${{ env.PACKAGE_NAME }}_${{ env.PACKAGE_VERSION }}*.tgz .
cp ./linuxOS/${{ env.PACKAGE_NAME }}_${{ env.PACKAGE_VERSION }}*.tar.gz .
cp ./winOS/${{ env.PACKAGE_NAME }}_${{ env.PACKAGE_VERSION }}*.zip .
echo "Renamed files"
ls manyios_*

- name: Create Release and Upload Assets
id: create_release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag: ${{ steps.newtag.outputs.tag }}
tag_name: ${{ steps.newtag.outputs.tag }}
name: Release ${{ steps.newtag.outputs.tag }}
draft: false
prerelease: false

- name: Download binaries
uses: actions/download-artifact@v2

- name: Display structure of downloaded files
run: ls -R

- name: Rename Mac release
run: mv ./macOS/*.tgz pkg_macOS.tgz

- name: Upload Mac binary
id: upload-mac
uses: actions/upload-release-asset@v1.0.2
fail_on_unmatched_files: true
# Specify the assets you want to upload
files: |
manyios_*.tgz
manyios_*.tar.gz
manyios_*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: pkg_macOS.tgz
asset_name: pkg_macOS.tgz
asset_content_type: application/zip

- name: Rename Linux release
run: mv ./linuxOS/*.tar.gz pkg_linuxOS.tar.gz

- name: Upload Linux binary
id: upload-lin
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: pkg_linuxOS.tar.gz
asset_name: pkg_linuxOS.tar.gz
asset_content_type: application/zip

- name: Rename Windows release
run: mv ./winOS/*.zip pkg_winOS.zip
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Windows binary
id: upload-win
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: pkg_winOS.zip
asset_name: pkg_winOS.zip
asset_content_type: application/zip

render:
name: Update README.md and push
needs: build
pkgdown:
name: Build and deploy website
if: ${{ always() }}
needs: release
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

Expand All @@ -157,44 +140,16 @@ jobs:
with:
cache-version: 2
extra-packages: |
any::manydata
any::rcmdcheck
any::pkgdown
any::rsconnect
needs: check

- name: Install package
run: R CMD INSTALL .

# Render README.md using rmarkdown
- name: render README
run: Rscript -e 'rmarkdown::render("README.Rmd", output_format = "md_document")'
# Add man/figures/README-* to the git add call if plots are generated
- name: commit rendered README
- name: Deploy package
run: |
git add README.md
git commit -m "Re-build README.md" || echo "No changes to commit"
git push origin master || echo "No changes to commit"

# In case of a website, please uncomment the code chunk below.
# pkgdown:
# name: Build and deploy website
# needs: render
# runs-on: macOS-latest
# env:
# GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - uses: actions/checkout@v2
# - uses: r-lib/actions/setup-r@v2
# - uses: r-lib/actions/setup-pandoc@v1
# - uses: r-lib/actions/setup-r-dependencies@v2
# with:
# cache-version: 2
# extra-packages: |
# any::rcmdcheck
# any::pkgdown
# needs: check
# - name: Install package
# run: R CMD INSTALL .
# - name: Deploy package
# run: |
# git config --local user.email "actions@github.com"
# git config --local user.name "GitHub Actions"
# Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
.DS_Store
docs
34 changes: 25 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
Package: manyigos
Package: manyios
Title: Intergovernmental Organisations for manydata
Version: 0.0.1
Date: 2023-03-07
Description: manyigos provides data on intergovernmental organisations in the international system across time.
Version: 0.0.2
Date: 2025-06-02
Description: manyios provides data on intergovernmental organisations in the international system across time.
The package combines and cross-references several existing datasets consistent with the manydata package aims.
URL: https://github.com/globalgov/manyigos
BugReports: https://github.com/globalgov/manyigos/issues
Authors@R:
c(person(given = "James",
family = "Hollway",
Expand All @@ -24,12 +22,30 @@ License: CC BY 4.0
Depends:
R (>= 3.5.0),
manydata
Imports:
purrr,
stringi
Suggests:
testthat (>= 3.0.0),
pointblank,
lubridate
testthat (>= 3.0.0),
lubridate,
remotes,
knitr
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.1
RoxygenNote: 7.3.2
URL: https://github.com/globalgov/manyios
BugReports: https://github.com/globalgov/manyios/issues
Config/Needs/build:
roxygen2,
devtools
Config/Needs/check:
covr,
lintr,
spelling
Config/Needs/website:
pkgdown
Config/testthat/parallel: true
Config/testthat/edition: 3
Config/testthat/start-first: code_orgs
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Generated by roxygen2: do not edit by hand

export(code_orgs)
export(consolidate)
importFrom(manydata,consolidate)
importFrom(purrr,map_chr)
importFrom(stringi,stri_detect_regex)
importFrom(stringi,stri_trans_general)
14 changes: 14 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# manyios 0.0.2

2025-06-02

## Package

* Closed #7 adding website and new package logo
* Closed #11 by updating documentation to make it easier to retrieve information on data sources
* Closed #13 by changing package name to manyios and updating references to manyigos across files

## Data

* Added `memberships$MIGO` dataset

# manyigos 0.0.1

2023-03-07
Expand Down
Loading
Loading