I just put my functions to interact with the EIA's API into a R package which I've called 'EIAdata'. The package is available here: EIAdata_0.1.tar.gz. Once downloaded, you can install it with
R CMD INSTALL EIAdata_0.1.tar.gz while in the same directory.
The package contains the functions
getEIA which will get data categories/series IDs, and the time series data for a given series ID, respectively.