The comtradr package is an API wrapper for the UN Comtrade Database.
Country names passed to the API query function must be specified according to ISO 3166-1 alpha-3.
Bochtler P, Goers H, Muir C (2023). comtradr: Interface with the United Nations Comtrade API. R package version 0.4.0.0, https://github.com/ropensci/comtradr, https://docs.ropensci.org/comtradr/.