********************************************************************* Comprehensive list of improvements and modifications to the GnG1 Models ********************************************************************* GnG1 Models fits the GnG1 models to ruminal degradation (kd) and passage (kp) data. It is a front end to R: the modeling is done by the GnG1 R scripts, and R (free of charge) must be installed from http://www.r-project.org. GnG1 Models is written by Luis Orlindo Tedeschi and distributed by NutritionModels.com. The versions before 2.9.9215.28065 were published without a list of changes. Their entries below were reconstructed in October 2026 from the setup files kept for each version, so they list what can be seen in the installed files (new options, new or removed files, updated libraries) and not every correction made inside the program or the R scripts. Version 3.x =========== GnG1 3 is a major upgrade of both the program and the R script, and it may require (re)registration. One R script now fits both degradation (kd) and passage (kp) data, with new models, a fitting method with bounds, model selection by AIC, BIC or SSE, and a complete HTML report with every run. GnG1 remains a front end to R: the modeling is done by the GnG1 R script, and R (free of charge) must be installed from http://www.r-project.org. 3.0.9827.14390 (2026-12-01) --------------------------- THIS VERSION MAY REQUIRE (RE)REGISTRATION DUE TO CHANGES IN THE LICENSING. (1) Licensing: from version 3.0 a GnG1 license has a term of 365 days, counted from the date of registration, and version 3.0 uses a new registration code, as in the other programs of NutritionModels.com. When the term ends GnG1 asks for a new registration code only if the code has changed since the copy was registered; while it has not changed, the copy stays registered and nothing is asked. (2) Registration and updates: GnG1 is rebuilt with the current registration and web update libraries. When the main update file on the website cannot be read, GnG1 reads the second one, and a check that cannot reach the website gives up after 15 seconds. (3) New R script (3.0.0). One script fits both kinds of data, chosen with Mode on the main form: the residue of fiber over time (degradation, kd) and the concentration of a marker in the feces over time (passage, kp). It replaces the two scripts of version 2 (GnG1_kd and GnG1_kp 2.4.11), no longer opens dialog boxes, and requires R 4.1 or later. (4) Degradation (kd) models: the exponential, the exponential with a discrete lag (Mertens and Loften, 1980), the logistic (Lopez et al., 1999; France et al., 2000), and the GnG1 models of order n = 1 to the maximum set on the form (Vieira et al., 2008a); with n = 1 GnG1 is the continuous-lag model of Van Milgen et al. (1991). Every model has an indigestible fraction, and the residue at time 0 is estimated instead of being fixed at the first reading. (5) Passage (kp) models: GnG1 with a transit time (Pond et al., 1988; Vieira et al., 2008b), Grovum and Williams (1973) and Dhanoa et al. (1985). Every model reports the transit time, the mean time in each compartment, the total mean retention time and the passage rate. For GnG1 the passage rate is 1/(n/lambda_r + 1/ke), as in version 2; the rate of the age-dependent compartment, lambda_r/n, is reported as well. A new option sets how a fractional N enters the Dhanoa transit time: rounded down (as before), rounded, or interpolated. (6) Effective digestibility: a degradation run reports the potentially digestible and indigestible fractions, the lag or mean delay, the effective digestibility at a passage rate, and the equivalent first-order kd. The passage rate is the one typed on the form, or is read from the results of a passage run, profile by profile. (7) Fitting: Levenberg-Marquardt with bounds is the default (port with bounds and Gauss-Newton remain). The grid search of version 2 is replaced by several starting values, and the GnG1 models are computed in a form that stays exact when the two rates are close. The model of each profile is selected by AIC (the default), BIC or SSE with Select by. (8) Results: every run writes report.html, with a summary, the selected model of each profile, charts and tables, and methods.html, with the equations, the fitting and the references. Charts are drawn with ggplot2 at the size and resolution set on the form, with smooth lines and text in every picture format, shown in the report as sharp cards that open full size when clicked, and the tables are saved as CSV files. (9) A menu bar (File, Run, Settings, Tools, Help), laid out as in the other programs of NutritionModels.com, repeats every button and adds the ten recent files, Save As, the results folder and the last report, the methods page, the logs and the start-up report, a copy of the system information for a support request, a reset of the settings to their defaults and the manual (F1). Run is F5 and Stop Shift+F5; Save writes to the open project without asking. The Load button is now Open. (10) Errors: an unexpected error no longer closes GnG1; it is reported, and the details are kept in an error log in Documents\NutritionModels\GnG1 Files\Logs. GnG1 checks its folders, R, the R packages and the R scripts at start-up and saves a report there. Settings, Logs can turn off the error log and the start-up reports. (11) Projects (.GnG1) of version 2 still open; the options that no longer exist are ignored, and Gauss-Newton or plinear fitting opens as Levenberg-Marquardt. A project saved with its data in the same folder keeps working when the folder is moved, and GnG1 says when a project points to files in another folder while files of the same names are beside it. (12) New scripts to check for R and to install the R packages GnG1 needs (XML, minpack.lm and ggplot2, and ragg for smoother charts). (13) A new license agreement, the same as for the other programs of NutritionModels.com. The program folder no longer receives debugging or library documentation files. (14) New program icon and logos. (15) A new manual, History, Science, and User Guide, opened by Help, Manual (F1). (16) Results: File, Open, Results File... opens any file of a results folder, the tables and text files in the GnG1 editor and the pages and charts in their own programs. A new option, Open folder, opens the results folder when the run finishes. (17) Stop ends the R run at once (R used to go on until it finished by itself), the message at the end says the user stopped it, and GnG1's messages open over its own window. (18) A dataset opened from a mapped network drive keeps its drive letter in the log and the report. (19) R is found wherever it is installed (also in a folder of its own, through the registry, R_HOME or PATH), and GnG1 remembers the R engine used last. With no R, GnG1 still opens and offers to choose Rscript.exe (Tools, R, Add R Engine) or to open the R download page. An error message at start-up is no longer hidden behind the start-up card. (20) R packages: Tools, R, Install R Packages installs the packages GnG1 needs and shows what R said. Before a run GnG1 checks the packages, including the packages they need themselves, and offers to install the missing ones. The installer asks for ready-made Windows packages, allows long downloads, tries other download sites when one cannot be reached, and writes R's own messages to the log. (21) Screens of different scaling: every window keeps the scale of the main monitor on every monitor, sharp and whole. A window moved to a monitor of another scale, or opened on it, keeps its size and nothing in it is cut; its title bar follows that monitor. On a small screen the main window scrolls instead of hiding its buttons, and at 100% the About window and the editor show all their text. (22) Fixed an error message ("Arithmetic operation resulted in an overflow") that could appear when the mouse moved out of an open drop-down list. Version 2.x =========== Version 2 replaced the scripts of version 1 with a Windows program: you choose the R engine, the R script, the dataset and the parameter file on one form, set the options, and run. The R scripts are shipped encrypted and the program requires registration. 2.9.9215.28065 (2025-03-25) -------------- (1) Fixed the date used for registration. (2) Updated third-party controls. 2.9.9213.15407 (2025-03-23) -------------- (1) The update window formats the list of changes of a new version as numbered or bulleted items. 2.9.9201.12165 (2025-03-11) -------------- (1) New web downloader: an update is downloaded with a progress bar, can be canceled, and is checked before it is installed. A website that does not answer no longer holds the program. (2) Updated third-party controls. 2.9.9191.28594 (2025-03-01) -------------- (1) Improved search for R engines: the program now also looks in the root of the system drive, besides Program Files and the AppData folder. (2) The Run button shows an animated R icon while R is running. (3) New installer. The sample files and the R scripts are now installed in Documents\NutritionModels\GnG1 Files (Samples and Scripts). (4) The script that checks whether R is installed was rewritten: it now searches the usual R folders for Rscript.exe and refers to GnG1 (it used to name other programs). (5) GnG1 Models is now published by NutritionModels.com. (6) The buttons of the registration and update windows show their icons at the right size on high-resolution screens. (7) GnG1 Models no longer has to run as a 32-bit program. (8) Updated web downloader and third-party controls. 2.9.8656.18073 (2023-09-13) -------------- (1) Added bypass registration. (2) The boxes for the R engine, the R script, the dataset and the parameter file show the full name in a tooltip. (3) Updated third-party controls. 2.9.8583.20427 (2023-07-02) -------------- (1) Improved search for R engines: the program now also looks in the AppData folder, where R can be installed without administrator rights. (2) Requires Microsoft .NET Framework 4.8.1, which the installer can download. (3) Updated third-party controls. 2.8.7919.35694 (2021-09-06) -------------- (1) Requires Microsoft .NET Framework 4.8, which the installer can download. (2) Revised layout of the main form, the About box and the editor. (3) Updated third-party controls. The bundled copy of the R package XML was removed; it is installed from the internet when needed. 2.6.7154.28603 (2019-08-03) -------------- (1) Requires Microsoft .NET Framework 4.7.1, which the installer can download. (2) New registration window and new update window. (3) Updated third-party controls. 2.5.5567.17084 (2015-03-30) -------------- (1) Updated registration and web update libraries. (2) Refreshed icons. (3) Updated links to the GnG1 and R websites. (4) A GnG1 icon is placed on the desktop, and the Start menu shortcuts were renamed. 2.5.4513.10643 (2012-05-10) -------------- (1) New R scripts, version 2.4.11 (kd and kp). These are the scripts that every later version of GnG1 Models ships. (2) Changes to how a run is started from the Run button. 2.5.4494.25929 (2012-04-21) -------------- (1) New R scripts, version 2.4.8 (kd and kp). (2) The script that installs the R packages lets you choose the download site and the packages to update. (3) The R package XML is again included with the program. (4) GnG1 Models runs as a 32-bit program. (5) Updated third-party controls and web update library. 2.5.4148.10858 (2011-05-11) -------------- (1) New option "Auto scale y- and x-axes". (2) New R scripts, version 2.4.5 (kd and kp), and a revised parameter file (gng1par.xml) and sample projects. 2.5.4110.38168 (2011-04-03) -------------- (1) Requires Microsoft .NET Framework 4.0, which the installer can download. (2) The program searches for R engines in both Program Files folders (64-bit and 32-bit Windows), and a new Refresh button searches again. (3) New R scripts, version 2.4.1 (kd and kp), which replace the earlier scripts. (4) New registration library and new web update library. (5) Refreshed icons. 2.4.3820.36841 (2010-06-17) -------------- (1) Registration and serial numbers can be longer. 2.4.3767.20415 (2010-04-25) -------------- (1) New R scripts, version 2.4 (kd and kp). (2) The sample files and the R scripts are installed in Documents\TAMU\GnG1 Files (Sample and Scripts). (3) The R packages are no longer included with the program; the package installer downloads the ones that are missing (XML, lattice and chron). (4) New About box. (5) The program recognizes 64-bit Windows. 2.4.3759.27157 (2010-04-17) -------------- (1) Updated registration library and third-party controls. 2.4.3645.22426 (2009-12-24) -------------- (1) New Update button in the About box: GnG1 Models can download and install a new version from the website. (2) The sample files are installed in their own Sample folder. 2.3.3550.14524 (2009-09-20) -------------- (1) The R script is chosen from a list (R scripts), and a script can be dropped onto that list. (2) New R scripts, versions 2.2 and 2.3 (kd and kp), installed in their own Scripts folder. (3) New option "Exclude profiles". (4) New option "Scatter plots only". (5) The R package lattice is included, and the packages chron and XML were updated. (6) Updated third-party controls. 2.1.3470.23916 (2009-07-02) -------------- (1) New button that opens the R graphical interface (R GUI). (2) Revised R scripts and sample projects. 2.0.3432.14206 (2009-05-25) -------------- (1) First version as a Windows program. One form holds the R engine, the dataset, the parameter file (XML) and the options; projects are saved and loaded as .GnG1 files, and the results can be read and saved in the built-in editor. (2) The R scripts for degradation (kd) and passage (kp) are shipped encrypted and run in the R engine you select. (3) Registration. (4) Requires Microsoft .NET Framework 3.5, which the installer can download. (5) Sample datasets and projects for degradation and passage, and a script that installs the R packages GnG1 needs (XML and chron, both included). Version 1.x =========== Version 1 was a set of R scripts, one for degradation and one for passage, each started from a shortcut in the Start menu. The scripts asked for their settings in dialog boxes (R package SciViews). 1.3 (2008-08-07) ---- (1) The degradation and passage scripts are installed in their own folders, each with its sample data and an example of the results. (2) License agreement. (3) Shortcut to the R website. 1.2 (2008-06-24) ---- (1) Revised R scripts (dated June 4, 2008): the settings can be read from a parameter file (parms_kd.xml and parms_kp.xml). (2) The R package XML is included. (3) A script checks whether R (2.7 or later) is installed and offers to open the R website. 1.1 (2008-03-27) ---- (1) First published version: R scripts for the degradation (kd) and passage (kp) models (dated February 13, 2008), sample data, the paper describing the models, and the R package SciViews.