USEPA / ccdR

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/
https://api-ccte.epa.gov/docs/
GNU General Public License v3.0
2 stars 0 forks source link

Add .onLoad to avoid issues with register_ccdr when called from other R packages #43

Closed rachmaninoffpk closed 3 months ago

rachmaninoffpk commented 3 months ago

When ccdR is loaded through other packages, some of the features loaded through .onAttach are not triggered and cause problems later. The ccdR options and API key, when previously stored, should be initialized through .onLoad rather than only through .onAttach.