********************************************************************* Comprehensive list of improvements and modifications to the Meal Criterion Calculation (MCC) ********************************************************************* Meal Criterion Calculation (MCC) is a front end to R: the calculations are done by the MCC R script, which is shipped encrypted, and R (free of charge) must be installed from http://www.r-project.org. MCC is written by Luis Orlindo Tedeschi and distributed by NutritionModels.com. The versions up to 2.1.9316.18601 (versions 1.x and 2.x) were published without a full list of changes, except for the short message of the update check. Their entries below were reconstructed in November 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 R scripts) and not every correction made inside the program or the R script. A version whose changes could not be seen in its files says so. Version 3.x =========== MCC 3 is a major upgrade of both the program and the R script, and it may require (re)registration. Everything the R script used to ask in its own windows (the dataset, the animals, the distributions, the meal criterion, the options and the parameters) is now on the main window of MCC, and R runs in the background. MCC remains a front end to R: the calculations are done by the MCC R script, and R (free of charge) must be installed from http://www.r-project.org. 3.0.9826.25926 (2026-12-01) --------------------------- THIS VERSION MAY REQUIRE (RE)REGISTRATION DUE TO CHANGES IN THE LICENSING. (1) Licensing: from version 3.0 an MCC 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 MCC 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. A registration made with version 2.1 is recognized. (2) New main window. The data system (Vytelle/GrowSafe or Hokofarm/Insentec), the dataset, its table and date-time format, the animals, the files of animals and dates to exclude, the first and second distributions, the split at the intersection or the minimum, the meal criterion (each animal's own, the group's, or a fixed number of seconds), the options and the parameters of the fitting and of the charts are chosen on the main window, with the defaults of version 2.1. R reads the dataset to list its animals, with their number of records and first and last days, and to find its date-time format. (3) A dataset (Access, Excel, CSV or text), an MCC project, or Hokofarm daily files can be dragged from File Explorer and dropped anywhere on the window. Projects: the dataset and options of an analysis are saved as an MCC project (.mcc) with File, Save and opened with File, Open; the ten most recent projects are listed under File, Recent Files. A project moved with its dataset to another folder or computer finds the dataset beside it. A sample dataset (sample.csv, simulated feeding events of ten steers over 42 days) and a sample project (sample.mcc) are installed in Documents\NutritionModels\MCC Files\Samples. (4) New R script (3.0.0). It no longer opens windows of its own and runs in the background while MCC shows its progress and messages; Stop (Shift+F5) ends a run at once. Every run writes its results in a new folder beside the dataset, in a folder named after the dataset, one folder per run named by when it ran (\Run 2026-11-23 20-45, ...), with the same tables as version 2.1 (output_bvi.csv, out_all_bvi.csv, output_meal.csv and the others) and the same values, and a log.txt with the options, the R version, every warning of R and the animals that could not be analyzed. (5) Corrections of the R script: a time that cannot be read with the date-time format is left out and reported (version 2.1 stopped); with Remove intervals up to the reading rate turned off, intervals of 0 s or less no longer stop the run (they are left out of the mixture); with the GrowSafe adjustment of meal overlaps turned off, an overlap gives an interval of 0 s instead of stopping the run; turning off the probability density of the histograms no longer stops the run; the density line of the histogram of all animals, the histogram of the intervals under 100 minutes and the mixture chart of all animals now use the data of all animals instead of those of the last animal; the compact letter charts of the statistics are drawn (they were blank); an animal whose mixture cannot be fitted is left out of the meals with a note, instead of being given a meal criterion of 1 s. (6) Hokofarm (Insentec) daily files are chosen together and combined by MCC into one dataset, in a new folder beside them; the dataset then opens as any other. (7) A report with every run (report.html in the results folder; it opens when the run ends, and the Report button and Run, Open Report open it again): a summary of the run; the meal criterion of each animal and of the group in seconds and minutes; the meals per day, their duration and intake for each animal; the missing days and ghost events by animal, by day and by feed bunk; the mixture of each animal; the methods and references; the warnings of the run. It opens without the Internet. The output shown in the MCC window is kept as console.txt in the same folder. (8) Charts: PNG, JPEG, BMP or TIFF, drawn with one engine on every computer (smoother lines and text when the ragg package is installed), with the size and resolution chosen on the main window and the resolution stored in the file. (9) R packages: the script installs a missing package without asking and no longer goes to the Internet at every start; Run, Install R Packages installs them ahead of the first run. Excel workbooks are read directly (no ODBC driver is needed); an Access database still needs the Microsoft Access driver of the same bits as R. (10) A menu bar (File, Run, Settings, Help), laid out as in the other programs of NutritionModels.com, with the recent projects, the report and the results folder, the R engine, Always on Top, Open Report After a Run, thirteen color schemes (Ranch Red is the default), the logs and the start-up report, a copy of the system information for a support request, a reset of the settings and the manual (F1). Run is F5. Update, Register, Website and System Information are in the Help menu and in the About window. (11) New start-up screen and About window, with the registration, this computer and the notice. MCC checks its folders, the R script, R and its settings at start-up and saves a report; an unexpected error no longer closes MCC, it is reported and kept in an error log (Documents\NutritionModels\MCC Files\Logs). Settings, Logs can turn off the error log and the start-up reports. (12) Registration and updates: MCC is rebuilt with the current registration and web update libraries; the update check runs in the background and gives up after 15 seconds when the website cannot be reached. (13) A new license agreement, the same as for the other programs of NutritionModels.com. The setup is smaller: the program folder no longer receives libraries MCC does not use, debugging files or library documentation. (14) The R script is kept in Documents\NutritionModels\MCC Files\Scripts; the copy MCC prepares for a run is deleted when the run ends (version 2.1 could leave it in the temporary folder of Windows). The command window option (Use CMD) is gone: the output of R is shown in the MCC window while it runs. (15) The model: a pair of two different distributions (for example Normal-Weibull) is fitted with each distribution on its own part of the mixture again (from version 1.10 a mixed pair was fitted with the first distribution for both parts, after a change for newer versions of R); every pair also has the Akaike information criterion of the likelihood (LL AIC), which chooses the pair, beside the AIC of earlier versions (G2 AIC) in output_bvi.csv. (16) Meals: a meal lasts from the start of its first visit to the latest end of its visits, so the time two visits overlap is counted once (earlier versions counted it twice); with Meals from adjusted intervals (on by default) the meals use the intervals of the mixture, measured from the latest end of the earlier visits; cleared, the intervals of earlier versions. (17) The report shows a small picture of every chart of the run in its Files part, grouped by animal, with lists to show one animal or one kind of chart. (18) A new icon and pictures, and Ranch Red, a soft brick red, as the color scheme of MCC (Settings, Color Scheme; Clear Sky and the eleven other schemes remain). A new manual: history, science, and user guide (Help, Manual). (19) R is found wherever it is installed: besides the usual folders, MCC looks where the R installer recorded it, in R_HOME and on PATH. When no R is found, MCC starts normally, and Run offers to choose Rscript.exe or to open the R download page. A message shown while MCC starts is no longer hidden behind the start-up screen. (20) On a monitor whose scale is not that of the main monitor (for example external monitors at 100% beside a laptop at 125%), every MCC window keeps the size and look it has on the main monitor: text and pictures stay sharp and nothing is cut off on any monitor (there, MCC's windows may look larger or smaller than those of other programs). A window larger than the screen fits it, with its menu bar in view and the rest of its contents scrolling. (21) The report shows each table and text file of the results folder in a window that scrolls, with a link above it that opens the file (Files, Tables and text files): a table with its header kept in view (the first 500 rows), a text file as it is (the first 1,000 lines), the main results first. (22) R: the start-up report says whether the R packages MCC needs are installed for the R that MCC will use; R that writes its output in the code page of Windows (before R 4.2) is read correctly; a script waiting for input from the console ends instead of waiting. (23) R packages: before reading a dataset or running, MCC checks that the R chosen has the packages it needs, and the packages those need, and offers to install them. Run, Install R Packages installs them with the MCC script, as ready-made Windows packages (which also suits older versions of R); when a secure download fails ("SSL connect error" on some networks), it tries other CRAN mirrors; and when R cannot install a package, the message and log.txt say why. Version 2.x =========== MCC 2 moved to a new installer, which puts the program in its own folder and the R scripts in Documents\NutritionModels\MCC Files, and to the libraries of NutritionModels.com. The update message of version 2.1 also lists these changes of the 2.0 versions, without saying in which one: improved search for R engines in the AppData folder and at the root of the system drive; updated web downloader; added landscape layout; fixed convergence and the finding of the intersecting or minimal point; fixed the date used for registration. 2.1.9316.18601 (2025-07-04) --------------------------- (1) Improved installation of the R packages the script needs. (2) New R script 1.9.12. 2.0.9315.16327 (2025-07-03) --------------------------- (1) Added handlers for more date and time formats of the datasets. (2) New R script 1.9.11. 2.0.9215.27883 (2025-03-25) --------------------------- (1) The window of the R script was revised to be more friendly and dynamic. (2) New R script 1.9.10. 2.0.9213.15944 (2025-03-23) --------------------------- (1) Support for Hokofarm (Insentec) datasets (written Hokafarm before). (2) New R script 1.9.9. 2.0.9209.35622 (2025-03-19) --------------------------- (1) Improved separation of meals across days: a meal no longer continues past midnight. (2) Improved meal criterion selection with multiple intersects: the option Use the root between means takes the intersection between the means of the two distributions. (3) The start guide is installed with the program. (4) New R script 1.9.8. 2.0.9200.38470 (2025-03-10) --------------------------- (1) The links to the MCC and R websites are installed again. 2.0.9189.21742 (2025-02-27) --------------------------- (1) New installer: the program goes to its own folder and the R scripts to Documents\NutritionModels\MCC Files; several R scripts can be installed side by side, named with their version, and MCC asks which one to run. (2) New R script 1.9.7, which installs the R packages it needs. (3) New registration and web update libraries. Version 1.x =========== 1.10.8656.18505 (2023-09-13) ---------------------------- (1) Improved reading of Access (MDB) databases on 64-bit Windows. (2) Updated third-party controls. (3) Registration can be bypassed. 1.10.8584.18903 (2023-07-03) ---------------------------- (1) Fixed the error "the condition has length > 1" that newer versions of R give. (2) The program targets .NET Framework 4.8.1. (3) New R script 1.8.1. 1.9.7919.35834 (2021-09-06) --------------------------- (1) The charts of missing days and ghost events are skipped when they cannot be drawn. (2) The program targets .NET Framework 4.8. (3) New R script 1.7.9. A quick start guide was written in 2022. 1.8.7154.27227 (2019-08-03) --------------------------- (1) New program build; its changes could not be seen in its files. 1.7.7092.30077 (2019-06-02) --------------------------- (1) New program build; its changes could not be seen in its files. 1.7.6842.28667 (2018-09-25) --------------------------- (1) New R script 1.7.8. 1.7.6836.33854 (2018-09-19) --------------------------- (1) The date and time format of the dataset is found automatically. (2) New R script 1.7.7. 1.7.6802.24648 (2018-08-16) --------------------------- (1) New R script 1.7.6. 1.7.6788.20669 (2018-08-02) --------------------------- (1) New R script 1.7.5. 1.7.6785.29650 (2018-07-30) --------------------------- (1) New R script 1.7.4. 1.6.6784.34125 (2018-07-29) --------------------------- (1) New R script 1.7.3. 1.6.6782.33081 (2018-07-27) --------------------------- (1) A correction of R script 1.7.2. 1.6.6782.32426 (2018-07-27) --------------------------- (1) Intervals longer than 24 h (days without readings) and ghost events (a visit that starts before the previous one ends, inside it or past it) are adjusted and counted, with charts by day on feed and by feed bunk. (2) New R script 1.7.2. 1.6.6782.18050 (2018-07-27) --------------------------- (1) New options to adjust the intervals longer than 24 h and the ghost events. (2) New R script 1.7.1. 1.6.6780.28231 (2018-07-25) --------------------------- (1) A correction of R script 1.7. 1.6.6780.27076 (2018-07-25) --------------------------- (1) New R script 1.7, with charts drawn with ggplot2 and dates read with lubridate. 1.6.6718.24081 (2018-05-24) --------------------------- (1) New R script 1.6.1. 1.6.6716.14436 (2018-05-22) --------------------------- (1) New controls in the program window, which targets .NET Framework 4.7.1. (2) The mixture functions are part of the R script, which no longer needs the mixdist package. (3) New R script 1.6. 1.6.6062.22658 (2016-08-06) --------------------------- (1) The R script is also installed as an encrypted R workspace, which starts faster. (2) New R script 1.5.15. 1.5.6060.39601 (2016-08-05) --------------------------- (1) New R script 1.5.14. 1.5.5866 (2016-01-23) --------------------- (1) New R script 1.5.13. 1.5.5835 (2015-12-23) --------------------- (1) The program targets .NET Framework 4.6. (2) New R script 1.5.12. 1.5.5567 (2015-03-30) --------------------- (1) New program build, which needs the full .NET Framework 4.0; its other changes could not be seen in its files. 1.5.4622 (2012-08-27) --------------------- (1) New R script 1.5.11. 1.5.4617 (2012-08-22) --------------------- (1) The columns of the dataset are found by their names, so a dataset with an added column (such as Tag1) is read correctly. (2) New R script 1.5.10. 1.5.4513 (2012-05-10) --------------------- (1) The mixture functions are installed with MCC, and links to the MCC and R websites are added. (2) New R script 1.5.9. 1.5.4494 (2012-04-21) --------------------- (1) Histograms as probability densities, and a statistical comparison of the pairs of distributions (multiple comparisons). (2) New R script 1.5.6. 1.5.4080 (2011-03-04) --------------------- (1) New options: remove the intervals shorter than the reading rate, compute the meals, show the output of each animal, and split the two distributions at the minimum of the mixture instead of their intersection. (2) The Gumbel distribution. (3) New R script 1.5, with a window of its own for the options. 1.1.3937 (2010-10-12) --------------------- (1) New R script 1.2. 1.1.3934 (2010-10-09) --------------------- (1) The meal criterion is found where the two distributions cross (their intersection), for every pair of distributions. (2) The program targets .NET Framework 4.0. (3) New R script 1.1. 1.0.3 (2010-06-17) ------------------ (1) New program build; its changes could not be seen in its files. 1.0.2 (2010-05-04) ------------------ (1) New program build; its changes could not be seen in its files. 1.0.1 (2010-04-25) ------------------ (1) The first version kept: MCC runs the MCC R script (version 1.0), which fits a mixture of two distributions to the logarithm of the intervals between visits to the feed bunk, from the feeding events of a GrowSafe system.