Matt-Brigida / EIAdata

R Wrapper for the Energy Information Administration (EIA) API
16 stars 15 forks source link

Failing CRAN checks #4

Closed Matt-Brigida closed 5 years ago

Matt-Brigida commented 8 years ago
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘xmlToDataFrame’ for signature ‘"missing", "missing", "missing", "missing", "NULL"’
Calls: getCatEIA -> xmlToDataFrame -> <Anonymous>

Code of getCatEIA not changed since last passing CRAN check -- so this must be due to changes in CRAN checks or the XML package. The function itself also works fine when run.

Matt-Brigida commented 7 years ago

This is simply because the documentation does not include an API key, and so it passes nothing as an argument to xmlToDataFrame.

So this is purely a CRAN documentation check problem. We need to:

  1. Configure the package documentation so CRAN doesn't run the function, or
  2. Use a valid API key in the docs
Matt-Brigida commented 5 years ago

Fixed.