Predecessor to ctxR. Utilities for Interacting with the CTX APIs in R without prior API knowledge. All data is also available on the CompTox Chemical Dashboard (CCD) https://comptox.epa.gov/dashboard/
When retrieving details by AEID, SPID, or DTXSID an empty (null) data table is returned if no data is found for the given ID. If no data is found for a given m4id, instead this error is thrown on line #79 (jsonlite::fromJSON):
The API returns "[ ]" as the content for AEID, SPID, DTXSID when the request does not match data available, however, for m4id it returns "" as the content when a 200 response is given.
When retrieving details by AEID, SPID, or DTXSID an empty (null) data table is returned if no data is found for the given ID. If no data is found for a given m4id, instead this error is thrown on line #79 (
jsonlite::fromJSON
):As a result, this is affecting the related
_batch
function by filling any missing m4ids in the list withNA
.