I have been trying to download datasets from the OECD using R.
library(OECD)
search_dataset("transport")
Error in read_xml.response(httr::GET(url, ...)): Not Found (HTTP 404). and
get_datasets()
Error in read_xml.response(httr::GET(url, ...)) : Not Found (HTTP 404).
Only this command works when I specify the particular data set that I want to download, e.g., get_dataset(dataset = "ITF_GOODS_TRANSPORT")
I tried to use various ways of installing the OECD package, such as
remotes::install_github("https://github.com/expersso/OECD")
library(devtools)
devtools::install_version("OECD", version = "0.2.4", repos = "https://stat.ethz.ch/CRAN/")
install.packages("remotes")
remotes::install_github("jsicherman/GemmAPI")
search_dataset()method is no longer supported. This seems to be confirmed by the devs stating the best way to use the package is to use the OECD Data Explorer to both browse available datasets and filter specific datasets. The only reference tosearch_dataset()I could find is forOECD 0.2.0from 2019.