CIP-RIU / brapi

An R package to use the Breeding API (BrAPI) for accessing plant breeding data.
13 stars 7 forks source link

brapiGET function causing problems #21

Closed mverouden closed 6 years ago

mverouden commented 7 years ago

Hi Reinhard,

In the brapiGET function the part:

tryCatch({... }, error = function(e) stop(paste0(e, "\n\nMalformed request.")))

is causing error messages that need not to be generated. For example when the lst object has the value NULL. Is this part really need in this function? When I comment it out, all works fine with any problems.There is also still a TODO remark, which makes me question the reliability of the code.

Could you look into it or comment on what I just mentioned. Regards, Maikel