IIDDA R Package
The iidda package contains functions for the preparation of iidda datasets and also the iidda.api package, which is more stable and probably what you would be more interested in.
Installation
Stable Version
install.packages('iidda', repos = c('https://canmod.r-universe.dev', 'https://cran.r-project.org'))