countrycode
1.8.0Convert Country Names and Country Codes
48packages depend
1.3Mdownloads / year
83.6%test coverage
13/13checks pass
Overview
About
Standardize country names, convert them into one of 40 different coding schemes, convert between coding schemes, and assign region descriptors.
Install
Health
CRAN checks
13OK
Slowest check: 2.9 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 2.07
83.6%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
- Examples that run
- 50%
- Documented parameters
- 100%
- Return-value docs
- 25%
- References docs
- 0%
Downloads
1.3M
CRAN downloads in the past year
Rank #642 · ~3.6K/day · ~108.8K/mo
Daily download trend is not available in this view yet.
24.3K30 days
100.1K90 days
1.3M1 year
Also on7.2K r2u35 autocran4.3K conda_forge276 c2d4u
Repository
Repository
370Stars
85Forks
2Open issues
0Open PRs
7Releases
557Commits
26Contributors
License GPL-3.0 · 557 commits · Last activity 2026-07-02 · 0% stars, 30d
Stars over time
2025-07-09 · 3512026-07-13 · 370
Forks over time
2025-03-27 · 792026-07-07 · 85
Releases over time
2023-05-30 · 72026-07-07 · 7
Issues over time
2024-10-23 · 142026-07-07 · 2
PRs over time
2025-03-31 · 12026-07-07 · 0
Repository practices
Upstream repositoryBeta
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/vincentarelbundock/countrycode on 2026-07-19.
Continuous integration (2)
GitHub ActionsAppVeyor
Reproducibility and dev environment (1)
Makefile
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
Dependencies
Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
48direct
19indirect
TimeVizProAgePopDenomMazamaSpatialUtilsPolarCAPWorldMapRaukbiofetchRcmsafviscountryatlascranlyecharts4reurostatfishRmangeoboundsgiscoRidbrislandcodesleadeRmapSpainmeetuproRaklEphotonregionsripcrwundergroundsocialmixrsubincomeRunicefDatawcdewdparweedxSubBeeBDCCoordinateCleanerGDPucManyIVsNetsclinDataReviewcontactdataigoRmarginaleffectsmigestnetifyoverviewRpeacesciencertabularmapstroopdataunvoteswidyr
Code & Tests
Code Composition
R 2,056 (85%)Rd 375 (15%)
Code characteristics
- Cyclomatic complexity
- 5.0 median / 24 max
- Test cases
- 78 / 2.07 per code line
Test coverage
Line coverage
84%
Expression
79.7%
Tests / Examples
83.6% / 69% ex
Functions
5 4 exported
Complexity
11.2 avg / 24 max
Call network
5 nodes / 2 edges
Call graph
Open call graph →Loading call graph…
Lowest coverage
5 functions| Function | Cyclo | Coverage |
|---|---|---|
| get_dictionary exp | 5 | 0% |
| guess_field exp | 2 | 0% |
| countrycode exp | 24 | 93% |
| countrycode_convert | 23 | 96% |
| countryname exp | 2 | 100% |
Datasets
Bundled datasets · 4
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| cldr_examples | data.frame | 554 × 2 | – |
| codelist | tbl_df/tbl/data.frame | 292 × 627 | – |
| codelist_panel | tbl_df/tbl/data.frame | 29,574 × 59 | – |
| countryname_dict | data.frame | 24,725 × 2 | – |
People & History
People (5)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (4)
Contributor · added in 1.6.0
Contributor · added in 1.1.0
Contributor · added in 1.4.0
Contributor · added in 1.00.0
Package Timeline
32 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.8.0Latest
- 1.7.02026-02-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.6.12025-03-31 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.6.02024-03-22 · diff ↗
- 1.5.02023-05-30 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.4.02022-05-04 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.3.12022-02-02 · diff ↗
- 1.3.02021-07-15 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.2.02020-05-22 · diff ↗
- 1.1.32020-05-07 · diff ↗
Show 37 earlier events
- RR 4.0.0 released · 2020-04-24
- 1.1.22020-04-22 · diff ↗
- 1.1.12020-02-08 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.1.02018-10-27 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.00.02018-02-11 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.192017-02-06 · diff ↗
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.182014-12-29 · diff ↗
- 0.172014-07-15 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 0.162013-08-20 · diff ↗
- 0.142013-05-30 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 0.132013-03-22 · diff ↗
- 0.122013-03-08 · diff ↗
- 0.112013-02-12 · diff ↗
- 0.102013-01-20 · diff ↗
- 0.92012-12-27 · diff ↗
- 0.82012-06-26 · diff ↗
- 0.72012-06-04 · diff ↗
- 0.62012-04-01 · diff ↗
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 0.52010-08-14 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 0.42010-03-02 · diff ↗
- 0.32009-12-13 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 0.22009-06-14 · diff ↗
- 0.12009-06-03
- RR 2.9.0 released · 2009-04-17
0 of 2 selectedCompare selected
Package metadata
- First published
- 2009-06-03
- Total releases
- 32 / 17 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 486 KB / 4 files
- Download size
- 520 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet