The code distributed in ToxicR comes from different sources with various licenses. Because of this
the package is released under the GNU Lesser General Public License <https://www.gnu.org/licenses/lgpl-3.0.en.html> to satisfy all license requirements.  Some components can be used under the more permissive MIT
license. Each component is described below: 

GSL
______________________
The code snippit in ToxicR/tools/winlibs.R that downloads GSL 2.7 for Rtools 4.0 was copied from RcppGSL and is distributed under GPL 2 as given 
in that package copyright. 

NLOPT
----------------------

The nlopt library,  provided in the file src/nlopt-src.tar.gz, is distributed under the GNU Lesser General Public License <https://www.gnu.org/licenses/lgpl-3.0.en.html>.

NLOPT install scripts
----------------------

The scripts in the directories ToxicR/src/scripts and ToxicR/tools were derived from the R package nloptr and are distributed under the GNU Lesser General Public License <https://www.gnu.org/licenses/lgpl-3.0.en.html>.

ToxicR code NIEHS/NTP/DHHS
--------------------------

All official ToxicR source code was written by the U.S Department of Health and Human Services (U.S. DHHS) employees. Consequently, the U.S. DHHS owns the copyright for this code, which is distributed under the MIT license. 

This code is located in the directories

ToxicR/src  - This includes all files other than "nlopt-src.tar.gz."
ToxicR/src/code_base
ToxicR/src/include
ToxicR/src/polyK
ToxicR/R
ToxicR/test

and is under the MIT liscence. 

Copyright <2022> <US Department of Health and Human Services>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
