Git Product home page Git Product logo

croptimizr's Introduction

SticsRPacks

R build status DOI

Overview

SticsRPacks is a set of packages that work in harmony because they share common data representations and API design. The SticsRPacks package is designed to make it easy to install and load core packages from SticsRPacks in a single command.

If you’d like to learn how to use the SticsRPacks packages, the best place to start are the vignettes that come along the packages, and also available from each websites (Article sections).

This package is heavily inspired from the tidyverse package.

Installation

The installation requires the devtools package. If it is not yet installed, run first install.packages("devtools").

Then, you can install the SticsRPacks packages by running:

devtools::install_github("SticsRPacks/SticsRPacks@*release")

Troubleshooting

It the installation does not work:

  • In case you have messages such as:

    • “cannot remove prior installation of package ‘*****’”

    or

    • API rate limit exceeded for ****

    please refer to here.

  • otherwise, please follow the instructions given here.

Usage

library(SticsRPacks) will load the core SticsRPacks packages:

You also get a condensed summary of conflicts with other packages you have loaded:

library(SticsRPacks)
#> ── Attaching packages ───────────────────────────────────── SticsRPacks 0.6.2 ──
#> ✔ SticsRFiles 1.2.0     ✔ SticsOnR    1.2.0
#> ✔ CroptimizR  0.6.1     ✔ CroPlotR    0.9.0
#> ── Conflicts ──────────────────────────────────────── SticsRPacks_conflicts() ──
#> ✖ CroptimizR::AIC()    masks stats::AIC()
#> ✖ CroptimizR::BIC()    masks stats::BIC()
#> ✖ methods::body<-()    masks base::body<-()
#> ✖ methods::kronecker() masks base::kronecker()

You can see conflicts created later with SticsRPacks_conflicts():

library(MASS)
SticsRPacks_conflicts()
#> ── Conflicts ──────────────────────────────────────── SticsRPacks_conflicts() ──
#> ✖ CroptimizR::AIC()    masks stats::AIC()
#> ✖ CroptimizR::BIC()    masks stats::BIC()
#> ✖ methods::body<-()    masks base::body<-()
#> ✖ methods::kronecker() masks base::kronecker()

And you can check that all SticsRPacks packages are up-to-date with SticsRPacks_update():

SticsRPacks_update()
#> The following packages are out of date:
#>  * SticsRFiles (0.4.0 -> 0.4.1)
#>  * CroptimizR (0.4.1 -> 0.5)
#> Update now?
#> 
#> 1: Yes
#> 2: No

Tutorial

A tutorial is provided to learn how to use the main features of the SticsRPacks packages!

To run it you need to install the learnr package.

If you have a version of STICS more recent or equal to 9.2.0 installed on your computer, it is recommended that you use this version to carry out the exercises of the tutorial.

For this, an environment variable javastics_path must be set to the path of the corresponding JavaSTICS folder. This can be done:

  • in your R session, each time before running the tutorial, by executing the following command: Sys.setenv(javastics_path="path_to_JavaSTICS"), where path_to_JavaSTICS should be replaced by the absolute path of the corresponding JavaSTICS folder.

or

  • by defining this environment variable in your .Renviron file: edit this file (located in your Home directory, can be edited also using usethis::edit_r_environ()), and add a new line javastics_path="path_to_JavaSTICS". In this case, your R session must then be restarted (in RStudio: menu Session-> Restart R).

Then, if you have RStudio version 1.3 or greater, click on the Tutorial pane on the right of the RStudio window (close to Environment, History, … panes), scroll to see Tutorial for SticsRPacks and click on the button Start Tutorial.

Alternatively, e.g. if you have an older version of RStudio or if you don’t have the Tutorial pane for any reason, you can run the tutorial by running the command: learnr::run_tutorial("SticsRpacks", package="SticsRPacks")

The first time it is started, the tutorial takes a few minutes to initialize in order to download all the materials and run the solutions. Subsequent runs do not need this steps, the tutorial will thus start almost immediately from the second run.

NEWS: the tutorial can now be done online, without installing SticsRPacks: just by clicking here, thanks to @eric.casellas.

Getting help

If you have any question or suggestion or if you want to report a bug, please do it via the GitHub issues.

Thanks for that, this would greatly help us to improve this package.

Citation

If you have used this package for a study that led to a publication or report, please cite us. You can either use the citation tool from Github if you used the last version, or use citation("SticsRPacks") from R otherwise.

Code of Conduct

Please note that the SticsRPacks project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

croptimizr's People

Contributors

ginerm avatar plecharpent avatar sbuis avatar tvailhere avatar vezy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

croptimizr's Issues

Cyclic dependencies?

Unable to install package

Hi all, I'm having some trouble installing the package on a new machine today:

Expected Behavior

I can install the package

Current Behavior

Unable to install the package

Failure Information (for bugs)

There seems to be a cyclic dependency between this package (CroptimizR) and SticksRPacks. These two packages both list the other in their DESCRIPTION file. No idea if this is a good or bad thing in R.

Example:

R code:

devtools::install_github('SticsRPacks/CroptimizR', lib = '~/.local/share/ApsimInitiative/ApsimX/rpackages', dependencies = TRUE)

Output (note that this is being exeucted by another tool (apsim), so the stdout and stderr are separated):

Error from R:
Script path: '/tmp/a30d33a5-54f4-45f9-aef9-78802ff7c041-InstallGithubPackage.r'
StdErr:
Downloading GitHub repo SticsRPacks/CroptimizR@HEAD
Downloading GitHub repo SticsRPacks/SticsRPacks@HEAD
Downloading GitHub repo SticsRPacks/SticsOnR@v0.1.0.9005
Installing 18 packages: iterators, colorspace, viridisLite, RColorBrewer, munsell, labeling, farver, foreach, plyr, scales, isoband, gtable, XML, doParallel, dfoptim, reshape2, ggplot2, data.table
trying URL 'https://cloud.r-project.org/src/contrib/iterators_1.0.12.tar.gz'
Content type 'application/x-gzip' length 289201 bytes (282 KB)
==================================================
downloaded 282 KB
trying URL 'https://cloud.r-project.org/src/contrib/colorspace_1.4-1.tar.gz'
Content type 'application/x-gzip' length 2152594 bytes (2.1 MB)
==================================================
downloaded 2.1 MB
trying URL 'https://cloud.r-project.org/src/contrib/viridisLite_0.3.0.tar.gz'
Content type 'application/x-gzip' length 44019 bytes (42 KB)
==================================================
downloaded 42 KB
trying URL 'https://cloud.r-project.org/src/contrib/RColorBrewer_1.1-2.tar.gz'
Content type 'application/x-gzip' length 11532 bytes (11 KB)
==================================================
downloaded 11 KB
trying URL 'https://cloud.r-project.org/src/contrib/munsell_0.5.0.tar.gz'
Content type 'application/x-gzip' length 182653 bytes (178 KB)
==================================================
downloaded 178 KB
trying URL 'https://cloud.r-project.org/src/contrib/labeling_0.3.tar.gz'
Content type 'application/x-gzip' length 10722 bytes (10 KB)
==================================================
downloaded 10 KB
trying URL 'https://cloud.r-project.org/src/contrib/farver_2.0.3.tar.gz'
Content type 'application/x-gzip' length 1279579 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cloud.r-project.org/src/contrib/foreach_1.5.0.tar.gz'
Content type 'application/x-gzip' length 87370 bytes (85 KB)
==================================================
downloaded 85 KB
trying URL 'https://cloud.r-project.org/src/contrib/plyr_1.8.6.tar.gz'
Content type 'application/x-gzip' length 401191 bytes (391 KB)
==================================================
downloaded 391 KB
trying URL 'https://cloud.r-project.org/src/contrib/scales_1.1.1.tar.gz'
Content type 'application/x-gzip' length 515201 bytes (503 KB)
==================================================
downloaded 503 KB
trying URL 'https://cloud.r-project.org/src/contrib/isoband_0.2.2.tar.gz'
Content type 'application/x-gzip' length 2295931 bytes (2.2 MB)
==================================================
downloaded 2.2 MB
trying URL 'https://cloud.r-project.org/src/contrib/gtable_0.3.0.tar.gz'
Content type 'application/x-gzip' length 368081 bytes (359 KB)
==================================================
downloaded 359 KB
trying URL 'https://cloud.r-project.org/src/contrib/XML_3.99-0.5.tar.gz'
Content type 'application/x-gzip' length 968563 bytes (945 KB)
==================================================
downloaded 945 KB
trying URL 'https://cloud.r-project.org/src/contrib/doParallel_1.0.15.tar.gz'
Content type 'application/x-gzip' length 173578 bytes (169 KB)
==================================================
downloaded 169 KB
trying URL 'https://cloud.r-project.org/src/contrib/dfoptim_2018.2-1.tar.gz'
Content type 'application/x-gzip' length 10010 bytes
==================================================
downloaded 10010 bytes
trying URL 'https://cloud.r-project.org/src/contrib/reshape2_1.4.4.tar.gz'
Content type 'application/x-gzip' length 37307 bytes (36 KB)
==================================================
downloaded 36 KB
trying URL 'https://cloud.r-project.org/src/contrib/ggplot2_3.3.2.tar.gz'
Content type 'application/x-gzip' length 3054431 bytes (2.9 MB)
==================================================
downloaded 2.9 MB
trying URL 'https://cloud.r-project.org/src/contrib/data.table_1.13.0.tar.gz'
Content type 'application/x-gzip' length 5273400 bytes (5.0 MB)
==================================================
downloaded 5.0 MB
* installing *source* packageiterators...
** packageiteratorssuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (iterators)
* installing *source* packagecolorspace...
** packagecolorspacesuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-colorspace/00new/colorspace/libs
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (colorspace)
* installing *source* packageviridisLite...
** packageviridisLitesuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (viridisLite)
* installing *source* packageRColorBrewer...
** packageRColorBrewersuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RColorBrewer)
* installing *source* packagelabeling...
** packagelabelingsuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (labeling)
* installing *source* packagefarver...
** packagefarversuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-farver/00new/farver/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (farver)
* installing *source* packageplyr...
** packageplyrsuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-plyr/00new/plyr/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (plyr)
* installing *source* packageisoband...
** packageisobandsuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-isoband/00new/isoband/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (isoband)
* installing *source* packagegtable...
** packagegtablesuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (gtable)
* installing *source* packageXML...
** packageXMLsuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-XML/00new/XML/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (XML)
* installing *source* packagedfoptim...
** packagedfoptimsuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (dfoptim)
* installing *source* packagedata.table...
** packagedata.tablesuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-data.table/00new/data.table/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (data.table)
* installing *source* packagemunsell...
** packagemunsellsuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (munsell)
* installing *source* packageforeach...
** packageforeachsuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (foreach)
* installing *source* packagereshape2...
** packagereshape2successfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-reshape2/00new/reshape2/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (reshape2)
* installing *source* packagescales...
** packagescalessuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (scales)
* installing *source* packagedoParallel...
** packagedoParallelsuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (doParallel)
* installing *source* packageggplot2...
** packageggplot2successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (ggplot2)
The downloaded source packages are in/tmp/RtmpNDokTl/downloaded_packages* installing *source* packageSticsOnR...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (SticsOnR)
Downloading GitHub repo SticsRPacks/CroptimizR@v0.1.0.9003
Skipping CroptimizR, it is already being installed
Downloading GitHub repo SticsRPacks/SticsRFiles@v0.1.0.9004
Installing 6 packages: hms, progress, cellranger, readxl, xslt, lubridate
trying URL 'https://cloud.r-project.org/src/contrib/hms_0.5.3.tar.gz'
Content type 'application/x-gzip' length 134669 bytes (131 KB)
==================================================
downloaded 131 KB
trying URL 'https://cloud.r-project.org/src/contrib/progress_1.2.2.tar.gz'
Content type 'application/x-gzip' length 29506 bytes (28 KB)
==================================================
downloaded 28 KB
trying URL 'https://cloud.r-project.org/src/contrib/cellranger_1.1.0.tar.gz'
Content type 'application/x-gzip' length 63857 bytes (62 KB)
==================================================
downloaded 62 KB
trying URL 'https://cloud.r-project.org/src/contrib/readxl_1.3.1.tar.gz'
Content type 'application/x-gzip' length 2056165 bytes (2.0 MB)
==================================================
downloaded 2.0 MB
trying URL 'https://cloud.r-project.org/src/contrib/xslt_1.4.2.tar.gz'
Content type 'application/x-gzip' length 17577 bytes (17 KB)
==================================================
downloaded 17 KB
trying URL 'https://cloud.r-project.org/src/contrib/lubridate_1.7.9.tar.gz'
Content type 'application/x-gzip' length 467131 bytes (456 KB)
==================================================
downloaded 456 KB
* installing *source* packagehms...
** packagehmssuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (hms)
* installing *source* packagecellranger...
** packagecellrangersuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (cellranger)
* installing *source* packagexslt...
** packagexsltsuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-xslt/00new/xslt/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (xslt)
* installing *source* packagelubridate...
** packagelubridatesuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-lubridate/00new/lubridate/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (lubridate)
* installing *source* packageprogress...
** packageprogresssuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (progress)
* installing *source* packagereadxl...
** packagereadxlsuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
installing to /home/drew/.config/ApsimInitiative/ApsimX/rpackages/00LOCK-readxl/00new/readxl/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (readxl)
The downloaded source packages are in/tmp/RtmpNDokTl/downloaded_packages* installing *source* packageSticsRFiles...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (SticsRFiles)
Skipping install of 'SticsOnR' from a github remote, the SHA1 (c7033eab) has not changed since last install.
  Use `force = TRUE` to force installation
Downloading GitHub repo SticsRPacks/CroptimizR@v0.1.0.9003
Skipping CroptimizR, it is already being installed
Skipping install of 'SticsRFiles' from a github remote, the SHA1 (4de731c2) has not changed since last install.
  Use `force = TRUE` to force installation
ERROR: dependencyCroptimizRis not available for packageSticsRPacks* removing/home/drew/.config/ApsimInitiative/ApsimX/rpackages/SticsRPacksError: Failed to install 'CroptimizR' from GitHub:
  Failed to install 'SticsRPacks' from GitHub:
  (converted from warning) installation of package/tmp/RtmpNDokTl/file1089c747ba6be/SticsRPacks_0.0.1.9000.tar.gzhad non-zero exit status
Execution halted

StdOut:
SticsRPacks  (NA -> cf1bd2a8c...) [GitHub]
iterators    (NA -> 1.0.12      ) [CRAN]
zoo          (NA -> 1.8-8       ) [CRAN]
intervals    (NA -> 0.15.2      ) [CRAN]
plyr         (NA -> 1.8.6       ) [CRAN]
FNN          (NA -> 1.1.3       ) [CRAN]
spacetime    (NA -> 1.2-3       ) [CRAN]
reshape      (NA -> 0.8.8       ) [CRAN]
maptools     (NA -> 1.0-2       ) [CRAN]
sp           (NA -> 1.4-2       ) [CRAN]
automap      (NA -> 1.0-14      ) [CRAN]
gstat        (NA -> 2.0-6       ) [CRAN]
e1071        (NA -> 1.7-3       ) [CRAN]
xts          (NA -> 0.12-0      ) [CRAN]
colorspace   (NA -> 1.4-1       ) [CRAN]
viridisLite  (NA -> 0.3.0       ) [CRAN]
RColorBrewer (NA -> 1.1-2       ) [CRAN]
munsell      (NA -> 0.5.0       ) [CRAN]
labeling     (NA -> 0.3         ) [CRAN]
farver       (NA -> 2.0.3       ) [CRAN]
scales       (NA -> 1.1.1       ) [CRAN]
coda         (NA -> 0.19-3      ) [CRAN]
Brobdingnag  (NA -> 1.2-6       ) [CRAN]
mvtnorm      (NA -> 1.1-1       ) [CRAN]
statmod      (NA -> 1.4.34      ) [CRAN]
minqa        (NA -> 1.2.4       ) [CRAN]
RcppEigen    (NA -> 0.3.3.7.0   ) [CRAN]
TMB          (NA -> 1.7.18      ) [CRAN]
glmmTMB      (NA -> 1.0.2.1     ) [CRAN]
lme4         (NA -> 1.1-23      ) [CRAN]
qgam         (NA -> 1.3.2       ) [CRAN]
sfsmisc      (NA -> 1.1-7       ) [CRAN]
ape          (NA -> 5.4-1       ) [CRAN]
lmtest       (NA -> 0.9-37      ) [CRAN]
gap          (NA -> 1.2.2       ) [CRAN]
foreach      (NA -> 1.5.0       ) [CRAN]
doParallel   (NA -> 1.0.15      ) [CRAN]
expm         (NA -> 0.999-5     ) [CRAN]
sandwich     (NA -> 2.5-1       ) [CRAN]
gmm          (NA -> 1.6-5       ) [CRAN]
hydroTSM     (NA -> 0.6-0       ) [CRAN]
gtable       (NA -> 0.3.0       ) [CRAN]
isoband      (NA -> 0.2.2       ) [CRAN]
bridgesam... (NA -> 1.0-0       ) [CRAN]
DHARMa       (NA -> 0.3.2.0     ) [CRAN]
msm          (NA -> 1.6.8       ) [CRAN]
numDeriv     (NA -> 2016.8-1.1  ) [CRAN]
ellipse      (NA -> 0.4.2       ) [CRAN]
IDPmisc      (NA -> 1.1.20      ) [CRAN]
tmvtnorm     (NA -> 1.4-10      ) [CRAN]
emulator     (NA -> 1.2-20      ) [CRAN]
hydroGOF     (NA -> 0.4-0       ) [CRAN]
gridExtra    (NA -> 2.3         ) [CRAN]
ggplot2      (NA -> 3.3.2       ) [CRAN]
tictoc       (NA -> 1.0         ) [CRAN]
lubridate    (NA -> 1.7.9       ) [CRAN]
BayesianT... (NA -> 0.1.7       ) [CRAN]
SticsOnR    (NA -> c7033eabb...) [GitHub]
CroptimizR  (NA -> 8b6cea67c...) [GitHub]
SticsRFiles (NA -> 4de731c20...) [GitHub]
iterators    (NA -> 1.0.12  ) [CRAN]
colorspace   (NA -> 1.4-1   ) [CRAN]
viridisLite  (NA -> 0.3.0   ) [CRAN]
RColorBrewer (NA -> 1.1-2   ) [CRAN]
munsell      (NA -> 0.5.0   ) [CRAN]
labeling     (NA -> 0.3     ) [CRAN]
farver       (NA -> 2.0.3   ) [CRAN]
foreach      (NA -> 1.5.0   ) [CRAN]
plyr         (NA -> 1.8.6   ) [CRAN]
scales       (NA -> 1.1.1   ) [CRAN]
isoband      (NA -> 0.2.2   ) [CRAN]
gtable       (NA -> 0.3.0   ) [CRAN]
XML          (NA -> 3.99-0.5) [CRAN]
doParallel   (NA -> 1.0.15  ) [CRAN]
dfoptim      (NA -> 2018.2-1) [CRAN]
reshape2     (NA -> 1.4.4   ) [CRAN]
ggplot2      (NA -> 3.3.2   ) [CRAN]
data.table   (NA -> 1.13.0  ) [CRAN]
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c colorspace.c -o colorspace.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c init.c -o init.o
gcc -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o colorspace.so colorspace.o init.o -L/usr/lib64/R/lib -lR
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c ColorSpace.cpp -o ColorSpace.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c Comparison.cpp -o Comparison.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c Conversion.cpp -o Conversion.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c encode.cpp -o encode.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c farver.cpp -o farver.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c init.cpp -o init.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o farver.so ColorSpace.o Comparison.o Conversion.o encode.o farver.o init.o -L/usr/lib64/R/lib -lR
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RcppExports.cpp -o RcppExports.o
gcc -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c loop_apply.c -o loop_apply.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c split-numeric.cpp -o split-numeric.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o plyr.so RcppExports.o loop_apply.o split-numeric.o -L/usr/lib64/R/lib -lR
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c clip-lines.cpp -o clip-lines.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c init.cpp -o init.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c isoband.cpp -o isoband.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c polygon.cpp -o polygon.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c separate-polygons.cpp -o separate-polygons.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c test-clip-lines.cpp -o test-clip-lines.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c test-runner.cpp -o test-runner.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/testthat/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c test-separate-polygons.cpp -o test-separate-polygons.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o isoband.so clip-lines.o init.o isoband.o polygon.o separate-polygons.o test-clip-lines.o test-runner.o test-separate-polygons.o -L/usr/lib64/R/lib -lR
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for sed... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... /usr/bin/xml2-config
USE_XML2 = yes
SED_EXTENDED_ARG: -E
Minor 9, Patch 10 for 2.9.10
Located parser file -I/usr/include/libxml2/parser.h
Checking for 1.8:  -I/usr/include/libxml2
Using libxml2.*
checking for gzopen in -lz... yes
checking for xmlParseFile in -lxml2... yes
checking for xmlHashSize in -lxml2... yes
Using built-in xmlHashSize
Checking DTD parsing (presence of externalSubset)...
checking for xmlHashSize in -lxml2... yes
Found xmlHashSize
checking for xmlOutputBufferCreateBuffer in -lxml2... yes
have xmlOutputBufferCreateBuffer()
checking for xmlDocDumpFormatMemoryEnc in -lxml2... yes
checking libxml/xmlversion.h usability... yes
checking libxml/xmlversion.h presence... yes
checking for libxml/xmlversion.h... yes
Expat:  FALSE
Checking for return type of xmlHashScan element routine.
No return value for xmlHashScan
xmlNs has a context field
Checking for cetype_t enumeration
No cetype_t enumeration defined in R headers.
checking for xmlsec1-config... /usr/bin/xmlsec1-config
nodegc default 
xml-debug default 
Version has XML_WITH_ZLIB
Version has xmlHasFeature()
****************************************
Configuration information:
Libxml settings
libxml include directory: -I/usr/include/libxml2
libxml library directory: -lxml2 -lz -llzma -licui18n -licuuc -licudata -lm -ldl -lz  -lxml2
libxml 2:                 -DLIBXML2=1
Compilation flags:         -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1
Link flags:               -lxml2 -lz -llzma -licui18n -licuuc -licudata -lm -ldl -lz  -lxml2 -L/usr/lib -lltdl -lxmlsec1 -lz -llzma -licui18n -licuuc -licudata -ldl -lxslt -lxml2 -lm
****************************************
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/supports.R
config.status: creating inst/scripts/RSXML.csh
config.status: creating inst/scripts/RSXML.bsh
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c DocParse.c -o DocParse.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c EventParse.c -o EventParse.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c ExpatParse.c -o ExpatParse.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c HTMLParse.c -o HTMLParse.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c NodeGC.c -o NodeGC.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RSDTD.c -o RSDTD.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RUtils.c -o RUtils.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c Rcatalog.c -o Rcatalog.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c Utils.c -o Utils.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c XMLEventParse.c -o XMLEventParse.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c XMLHashTree.c -o XMLHashTree.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c XMLTree.c -o XMLTree.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fixNS.c -o fixNS.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c libxmlFeatures.c -o libxmlFeatures.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c schema.c -o schema.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c xmlsecurity.c -o xmlsecurity.o
gcc -I"/usr/include/R/" -DNDEBUG -DLIBXML -I/usr/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1  -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1  -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c xpath.c -o xpath.o
gcc -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o XML.so DocParse.o EventParse.o ExpatParse.o HTMLParse.o NodeGC.o RSDTD.o RUtils.o Rcatalog.o Utils.o XMLEventParse.o XMLHashTree.o XMLTree.o fixNS.o libxmlFeatures.o schema.o xmlsecurity.o xpath.o -lxml2 -lz -llzma -licui18n -licuuc -licudata -lm -ldl -lz -lxml2 -L/usr/lib -lltdl -lxmlsec1 -lz -llzma -licui18n -licuuc -licudata -ldl -lxslt -lxml2 -lm -L/usr/lib64/R/lib -lR
Creating a generic function forsourcefrom packagebasein packageXMLin method forxmlAttrsToDataFramewith signature"AsIs": no definition for classAsIsin method forreadKeyValueDBwith signature"AsIs": no definition for classAsIsin method forreadSolrDocwith signature"AsIs": no definition for classAsIsgcc 10.2.0
zlib 1.2.11 is available ok
OpenMP supported
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c assign.c -o assign.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c between.c -o between.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c bmerge.c -o bmerge.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c chmatch.c -o chmatch.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cj.c -o cj.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c coalesce.c -o coalesce.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c dogroups.c -o dogroups.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fastmean.c -o fastmean.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fcast.c -o fcast.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fifelse.c -o fifelse.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fmelt.c -o fmelt.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c forder.c -o forder.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c frank.c -o frank.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fread.c -o fread.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c freadR.c -o freadR.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c froll.c -o froll.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c frollR.c -o frollR.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c frolladaptive.c -o frolladaptive.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fsort.c -o fsort.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fwrite.c -o fwrite.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c fwriteR.c -o fwriteR.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c gsumm.c -o gsumm.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c ijoin.c -o ijoin.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c init.c -o init.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c inrange.c -o inrange.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c nafill.c -o nafill.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c nqrecreateindices.c -o nqrecreateindices.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c openmp-utils.c -o openmp-utils.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c quickselect.c -o quickselect.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c rbindlist.c -o rbindlist.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c reorder.c -o reorder.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c shift.c -o shift.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c snprintf.c -o snprintf.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c subset.c -o subset.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c transpose.c -o transpose.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c types.c -o types.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c uniqlist.c -o uniqlist.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c utils.c -o utils.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c vecseq.c -o vecseq.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2  -fopenmp -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c wrappers.c -o wrappers.o
gcc -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o data.table.so assign.o between.o bmerge.o chmatch.o cj.o coalesce.o dogroups.o fastmean.o fcast.o fifelse.o fmelt.o forder.o frank.o fread.o freadR.o froll.o frollR.o frolladaptive.o fsort.o fwrite.o fwriteR.o gsumm.o ijoin.o init.o inrange.o nafill.o nqrecreateindices.o openmp-utils.o quickselect.o rbindlist.o reorder.o shift.o snprintf.o subset.o transpose.o types.o uniqlist.o utils.o vecseq.o wrappers.o -fopenmp -lz -L/usr/lib64/R/lib -lR
if [ "data.table.so" != "datatable.so" ]; then mv data.table.so datatable.so; fi
if [ "" != "Windows_NT" ] && [ `uname -s` = 'Darwin' ]; then install_name_tool -id datatable.so datatable.so; fi
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG  -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c melt.cpp -o melt.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o reshape2.so RcppExports.o melt.o -L/usr/lib64/R/lib -lR
   checking for file/tmp/RtmpNDokTl/remotes1089c29930afa/SticsRPacks-SticsOnR-c7033ea/DESCRIPTION...checking for file/tmp/RtmpNDokTl/remotes1089c29930afa/SticsRPacks-SticsOnR-c7033ea/DESCRIPTION’
─  preparingSticsOnR:
   checking 
   checking DESCRIPTION meta-information ...checking DESCRIPTION meta-informationchecking for LF line-endings in source and make files and shell scriptschecking for empty or unneeded directoriesbuildingSticsOnR_0.1.0.9005.tar.gz’
hms        (NA -> 0.5.3) [CRAN]
progress   (NA -> 1.2.2) [CRAN]
cellranger (NA -> 1.1.0) [CRAN]
readxl     (NA -> 1.3.1) [CRAN]
xslt       (NA -> 1.4.2) [CRAN]
lubridate  (NA -> 1.7.9) [CRAN]
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/libxml2 
Using PKG_LIBS=-lexslt -lxslt -lxml2 
rm -f RcppExports.o xslt.o xslt_init.o xslt.so
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/libxml2  -DSTRICT_R_HEADERS -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/xml2/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/libxml2  -DSTRICT_R_HEADERS -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/xml2/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c xslt.cpp -o xslt.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I/usr/include/libxml2  -DSTRICT_R_HEADERS -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/xml2/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c xslt_init.cpp -o xslt_init.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o xslt.so RcppExports.o xslt.o xslt_init.o -lexslt -lxslt -lxml2 -L/usr/lib64/R/lib -lR
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cctz/src/time_zone_fixed.cc -o cctz/src/time_zone_fixed.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cctz/src/time_zone_if.cc -o cctz/src/time_zone_if.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cctz/src/time_zone_impl.cc -o cctz/src/time_zone_impl.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cctz/src/time_zone_info.cc -o cctz/src/time_zone_info.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cctz/src/time_zone_libc.cc -o cctz/src/time_zone_libc.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cctz/src/time_zone_lookup.cc -o cctz/src/time_zone_lookup.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cctz/src/time_zone_posix.cc -o cctz/src/time_zone_posix.o
ar rcs libcctz.a ./cctz/src/time_zone_fixed.o ./cctz/src/time_zone_if.o ./cctz/src/time_zone_impl.o ./cctz/src/time_zone_info.o ./cctz/src/time_zone_libc.o ./cctz/src/time_zone_lookup.o ./cctz/src/time_zone_posix.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c update.cpp -o update.o
gcc -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c utils.c -o utils.o
gcc -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c datetime.c -o datetime.o
gcc -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c period.c -o period.o
gcc -I"/usr/include/R/" -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c tparse.c -o tparse.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o lubridate.so RcppExports.o update.o utils.o datetime.o period.o tparse.o -L. -lcctz -L/usr/lib64/R/lib -lR
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c XlsWorkBook.cpp -o XlsWorkBook.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c XlsWorkSheet.cpp -o XlsWorkSheet.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c XlsxWorkBook.cpp -o XlsxWorkBook.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c XlsxWorkSheet.cpp -o XlsxWorkSheet.o
gcc -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c cran.c -o cran.o
gcc -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c endian.c -o endian.o
gcc -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c ole.c -o ole.o
gcc -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c xls.c -o xls.o
gcc -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c xlstool.c -o xlstool.o
g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -Iunix -I. -DRCPP_DEFAULT_INCLUDE_CALL=false -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/progress/include' -I'/home/drew/.config/ApsimInitiative/ApsimX/rpackages/Rcpp/include' -D_FORTIFY_SOURCE=2  -fvisibility=hidden -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c zip.cpp -o zip.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o readxl.so RcppExports.o XlsWorkBook.o XlsWorkSheet.o XlsxWorkBook.o XlsxWorkSheet.o cran.o endian.o ole.o xls.o xlstool.o zip.o -L/usr/lib64/R/lib -lR
   checking for file/tmp/RtmpNDokTl/remotes1089c79453841/SticsRPacks-SticsRFiles-5408388/DESCRIPTION...checking for file/tmp/RtmpNDokTl/remotes1089c79453841/SticsRPacks-SticsRFiles-5408388/DESCRIPTION’
─  preparingSticsRFiles:
   checking DESCRIPTION meta-information ...checking DESCRIPTION meta-informationchecking for LF line-endings in source and make files and shell scriptschecking for empty or unneeded directoriesbuildingSticsRFiles_0.1.0.9004.tar.gzchecking for file/tmp/RtmpNDokTl/remotes1089c6f4b8ad4/SticsRPacks-SticsRPacks-cf1bd2a/DESCRIPTION...checking for file/tmp/RtmpNDokTl/remotes1089c6f4b8ad4/SticsRPacks-SticsRPacks-cf1bd2a/DESCRIPTION’
─  preparingSticsRPacks:
   checking DESCRIPTION meta-information ...checking DESCRIPTION meta-informationchecking for LF line-endings in source and make files and shell scriptschecking for empty or unneeded directories
   Removed empty directorySticsRPacks/vignettes’
─  buildingSticsRPacks_0.0.1.9000.tar.gzScript contents:
#' Loads a package, installing it if necessary.
#'
#' @param pkg Name of the package to be installed/loaded.
#' @param pkgpath Path where package is to be installed.
#' @return Nothing.
getPackage <- function(pkg, pkgpath) {
    pkgName <- pkg
    if (grepl('/', pkgName, fixed = TRUE)) {
        # if pkg looks like owner/repo, we want pkgName to
        # be just "repo"
        pkgName <- unlist(strsplit(pkgName, '/'))[2]
	}
    if (!pkgName %in% rownames(installed.packages(lib.loc = pkgpath))) {
        if (!dir.exists(pkgpath)) {
            dir.create(pkgpath)
        }
        devtools::install_github(pkg, lib = pkgpath, dependencies = TRUE)
	} else {
		print(paste('Package', pkg, 'is already installed.'))
	}
}

args = commandArgs(TRUE)
getPackage(args[1], args[2])

----------------------------------------------

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • R version: R version 4.0.2 (2020-06-22) -- "Taking Off Again"
  • RStudio version: n/a (not using RStudio)
  • OS: Arch Linux 5.7.4-1-surface x86_64
  • Package dependencies version: unsure what this is, let me know and I can update the comment

Plant file not recognized for conversion to txt file

Hello,

I would like to convert my usms folders into text files before the calibration of the plant file.

I use this code:
javastics = normalizePath("0-javastics", winslash = "/")
javastics_workspace_path = normalizePath("0-data/usms/sojaPrecoce2012-SC", winslash = "/")
stics_inputs_path = normalizePath("3-calibration", winslash = "/", mustWork = FALSE)
gen_usms_xml2txt(javastics_path = javastics, workspace_path = javastics_workspace_path,
target_path = stics_inputs_path, verbose = TRUE)

But I get this error message :
Error in gen_usms_xml2txt(javastics_path = javastics, workspace_path = javastics_workspace_path, :
Missing files have been detected for usm(s): SojaPrecoce-SC2012 . Please note that with SticsRpacks, plant folder (that contains plant files) can be located either inside the workspace or in the JavaStics path.
Check that your plant files exist in one of these.

However the plant file is in the usm folder (I tested in a specific folder "plant" or directly with the other files of the usm folder)
I use the version "Stics_IC_v09-09-2021.exe" of stics.

Why is the plant file not recognized? Is there a version problem?

Thank you in advance for your help.

Broken link in documentation

Broken link in documentation

Expected Behavior

The link works :)

Current Behavior

The link doesn't work - I get a http 404 error.

Context

Hi guys, I'm finally getting back onto this stuff, getting the croptimizR running form the ApsimX gui. I may have more questions in the near future, but for now just thought I'd share a broken link I found in the docs.

I was reading this page in the "Criteria and likelihoods" section, and followed the links to the likelihoods page, but get a http 404 error. It appears that the typo is on this line - I suspect likelihoods.html should be Likelihoods.html (capital L).

Why does croptimizR not complete all replicates?

Issue Name

Results for all replicates (nb_rep) are not provided.

Expected Behavior

I expected it to perform 7 replicates when issuing the options:
optim_options <- list(nb_rep=7, maxeval=500, xtol_rel=1e-3)

Current Behavior

Generates 7 sets of init_values but does not produce est_values after the 4th replicate

Failure Information (for bugs)

Sorry a simple example reproducing the problem is not available.

Below is the output of the following cmd:
res <- invisible(
estim_param(obs_list,
crit_function = crit_ols,
model_function = apsim710_wrapper,
model_options = model_opts,
optim_options = optim_options,
param_info = param_info)
)

res

$final_values

xf1 xf2 xf3 xf4 xf5 xf6

1.0000000 0.4131886 0.1615333 0.2767080 1.0000000 0.9637884

$init_values

xf1 xf2 xf3 xf4 xf5 xf6

[1,] 0.62738741 0.39126860 0.80457505 0.70368565 0.985592733 0.44599632

[2,] 0.84175875 0.08140322 0.06655549 0.42863763 0.558877424 0.04238376

[3,] 0.19821268 0.55844158 0.59219519 0.32428271 0.292368519 0.93877927

[4,] 0.05847222 0.92780437 0.47241603 0.06433621 0.247138423 0.66724243

[5,] 0.34445318 0.81444265 0.88717481 0.94947463 0.759571008 0.23663428

[6,] 0.49319696 0.64331040 0.17505905 0.26776104 0.584254421 0.40523746

[7,] 0.93742940 0.26109676 0.37165395 0.74911316 0.001991663 0.85426164

$est_values

[,1] [,2] [,3] [,4] [,5] [,6]

[1,] 0.6786537 0.2768510 0.1340692 0.4354962 0.9627996 0.85437419

[2,] 0.6795549 0.2815597 0.1185267 0.4867351 0.6487604 0.04647841

[3,] 1.0000000 0.4175193 0.1796867 0.2182813 1.0000000 0.90245683

[4,] 1.0000000 0.4131886 0.1615333 0.2767080 1.0000000 0.96378839

[5,] NA NA NA NA NA NA

[6,] NA NA NA NA NA NA

[7,] NA NA NA NA NA NA

$min_crit_value

[1] 173.6351

$ind_min_crit

[1] 4

$nlo

$nlo[[1]]

Call:

nloptr::nloptr(x0 = as.numeric(init_values[irep, ]), eval_f = main_crit,

lb = bounds$lb, ub = bounds$ub, opts = list(algorithm = "NLOPT_LN_NELDERMEAD",

xtol_rel = xtol_rel, maxeval = maxeval, ranseed = ranseed),

crit_options = crit_options)

Minimization using NLopt version 2.4.2

NLopt solver status: 4 ( NLOPT_XTOL_REACHED: Optimization stopped because

xtol_rel or xtol_abs (above) was reached. )

Number of Iterations....: 313

Termination conditions: xtol_rel: 0.001 maxeval: 500

Number of inequality constraints: 0

Number of equality constraints: 0

Optimal value of objective function: 181.584602290233

Optimal value of controls: 0.6786537 0.276851 0.1340692 0.4354962 0.9627996 0.8543742

$nlo[[2]]

Call:

nloptr::nloptr(x0 = as.numeric(init_values[irep, ]), eval_f = main_crit,

lb = bounds$lb, ub = bounds$ub, opts = list(algorithm = "NLOPT_LN_NELDERMEAD",

xtol_rel = xtol_rel, maxeval = maxeval, ranseed = ranseed),

crit_options = crit_options)

Minimization using NLopt version 2.4.2

NLopt solver status: 4 ( NLOPT_XTOL_REACHED: Optimization stopped because

xtol_rel or xtol_abs (above) was reached. )

Number of Iterations....: 150

Termination conditions: xtol_rel: 0.001 maxeval: 500

Number of inequality constraints: 0

Number of equality constraints: 0

Optimal value of objective function: 1307.70869429847

Optimal value of controls: 0.6795549 0.2815597 0.1185267 0.4867351 0.6487604 0.04647841

$nlo[[3]]

Call:

nloptr::nloptr(x0 = as.numeric(init_values[irep, ]), eval_f = main_crit,

lb = bounds$lb, ub = bounds$ub, opts = list(algorithm = "NLOPT_LN_NELDERMEAD",

xtol_rel = xtol_rel, maxeval = maxeval, ranseed = ranseed),

crit_options = crit_options)

Minimization using NLopt version 2.4.2

NLopt solver status: 4 ( NLOPT_XTOL_REACHED: Optimization stopped because

xtol_rel or xtol_abs (above) was reached. )

Number of Iterations....: 258

Termination conditions: xtol_rel: 0.001 maxeval: 500

Number of inequality constraints: 0

Number of equality constraints: 0

Optimal value of objective function: 187.947771727245

Optimal value of controls: 1 0.4175193 0.1796867 0.2182813 1 0.9024568

$nlo[[4]]

Call:

nloptr::nloptr(x0 = as.numeric(init_values[irep, ]), eval_f = main_crit,

lb = bounds$lb, ub = bounds$ub, opts = list(algorithm = "NLOPT_LN_NELDERMEAD",

xtol_rel = xtol_rel, maxeval = maxeval, ranseed = ranseed),

crit_options = crit_options)

Minimization using NLopt version 2.4.2

NLopt solver status: 4 ( NLOPT_XTOL_REACHED: Optimization stopped because

xtol_rel or xtol_abs (above) was reached. )

Number of Iterations....: 233

Termination conditions: xtol_rel: 0.001 maxeval: 500

Number of inequality constraints: 0

Number of equality constraints: 0

Optimal value of objective function: 173.63506218706

Optimal value of controls: 1 0.4131886 0.1615333 0.276708 1 0.9637884

$nlo[[5]]

$nlo[[5]]$objective

[1] NA

$nlo[[5]]$solution

[1] NA NA NA NA NA NA

$nlo[[6]]

$nlo[[6]]$objective

[1] NA

$nlo[[6]]$solution

[1] NA NA NA NA NA NA

$nlo[[7]]

$nlo[[7]]$objective

[1] NA

$nlo[[7]]$solution

[1] NA NA NA NA NA NA

$total_time

[1] "Total time for parameter estimation: 57148.4 sec elapsed"

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • R version: 4.0.3 (2020-10-10)
  • RStudio version: 1.4.1106
  • OS: Windows 10
  • Package dependencies version:

sensitive_stics sticRs

Please fill this issue template. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.
Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.


Issue Name

La fonction sensitive_stics de sticRs ne fonctionne pas dans la version 10.1.1 de STICS

Expected Behavior

Current Behavior

Comme expliqué sur le forum STICS, je n'arrive pas à exécuter la fonction sensitive_stics de sticRs. J'exécute le code de cette manière:

path_origin_USM<- file.path(git_path,"USMs/Lam_2012_1_mais_ensilage")
path_simulation<-file.path(git_path,"USMs")
path_STICS<-stics_path
sens= sensitive_stics(dir.orig = path_origin_USM,
dir.targ = path_simulation,
stics = file.path(javastics_path,"bin","stics_modulo.exe"),
obs_name = "Lam_2012_1_mais_ensilage.obs",
Vars = c("lai(n)", "masec(n)"),
Parameters = list(interrang= list(min = 0.05, max = 0.25),
P_densitesem= list(min = 140, max = 280)),
method = "fast99", n = 70, q = "qunif")

Rémy VEZY m'a indiqué plusieurs possibilités d'erreurs, mais je les ai toutes vérifiées et elles ne semblent donc pas être la source du problème:

  • Je travaille bien sur des fichiers txt ;
  • Le chemin vers l'exécutable stics_modulo.exe est bien le bon

Ainsi, Rémy VEZY m'a conseillé d'exposer mon problème sur le dépôt CroptimizR pour résoudre ce problème et donc faire une migration de cette fonctionnalité vers SticsRPacks

Failure Information (for bugs)

L'erreur que j'obtiens est la suivante :

Erreur dans checkForRemoteErrors(val) :
11 nodes produced errors; first error: STICS call failed

Par ailleurs, lorsque j'exécute la librairie sticRs, j'ai le message suivant :

Registered S3 method overwritten by 'sensitivity':
method from
print.src dplyr
Learn sticRs at: https://vezy.github.io/sticRs

Attachement du package : ‘sticRs’

Les objets suivants sont masqués depuis ‘package:CroPlotR’:

ABS, Bias, EF, FVU, MAE, MAPE, MSE, nRMSE, NSE, R2, RME, RMSE, SS_res

L'objet suivant est masqué depuis ‘package:SticsOnR’:

run_stics

Context

J'utilise la dernière version de SticsRFiles et SticsRPacks. La version de STICS est la 10.1.1.
Les autres informations potentiellement utiles sont les suivantes :

  • R version: 4.3.2 (2023-10-31 ucrt)
  • RStudio version: RStudio 2023.12.1+402 "Ocean Storm"
  • OS: Windows

Error trying to create EstimatedVSInit.pdf

Hi all, I'm trying to run a parameter estimation using the apsimx wrapper, and I get an error after the optimiser has finished running, when we try and graph the results. I get this error from R:

Error in value[[3L]](cond) : 
  (converted from warning) Error trying to create C:\ApsimX\Prototypes\Grapevine/EstimatedVSinit.pdf file. It is maybe opened in a pdf viewer and locked. It will be created under the name EstimatedVSinit2020_23_13_58_10.pdf
Environment:
  1: source("~/Bugfixing/junqi-zhu/1-croptimizr/script.r")
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: script.r#70: estim_param(obs_list = obs_list, crit_function = crit_function, model_function = apsimx_wrapper, model_options = model_options, optim_options = optim_options, optim_method =
  6: estim_param.R#89: optim_switch(param_names, obs_list, crit_function, model_function, model_options, optim_method, optim_options, param_info)
  7: optim_switch.R#26: wrap_nloptr(param_names = param_names, obs_list = obs_list, crit_function = crit_function, model_function = model_function, model_options = model_options, optim_option
  8: wrap_nloptr.R#73: tryCatch({
    {
        .doTrace(browser())
        grDevices::pdf(file = file.path(path_results, "EstimatedVSinit.pdf"), width = 9, height = 9)
    }
    for (ipar in
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1]])
  11: value[[3]](cond)
  12: wrap_nloptr.R#92: warning("Error trying to create ", path_results, "/EstimatedVSinit.pdf file. It is maybe opened in a pdf viewer and locked. It will be created under the name ", filenam
  13: .signalSimpleWarning("Error trying to create C:\\ApsimX\\Prototypes\\Grapevine/EstimatedVSinit.pdf file. It is maybe opened in a pdf viewer and locked. It will be created under the name 
  14: withRestarts({
    .Internal(.signalCondition(simpleWarning(msg, call), msg, call))
    .Internal(.dfltWarn(msg, call))
}, muffleWarning = function() NULL)
  15: withOneRestart(expr, restarts[[1]])
  16: doWithOneRestart(return(expr), restart)

The file definitely isn't open in a reader (the error occurs even if the file doesn't exist).

I'm pretty sure this is caused by est_values and init_values having different shapes (1x4 vs 4x1, see diagnostics below). Any thoughts on what might be causing this? I can upload the full R script if that helps, although it does use the apsimx wrapper, so you would need to have apsimx installed for it to work.

Here are my optimiser settings:

optim_options=list()
optim_options$nb_rep <- 4
optim_options$xtol_rel <- 1E-05
optim_options$maxeval <- 2
optim_options$path_results <- 'C:\\ApsimX\\Prototypes\\Grapevine'

crit_function <- CroptimizR::crit_log_cwss
optim_method <- 'nloptr.simplex'

Here are a few diagnostics:

Browse[2]> init_values
     .Simulations.Replacements.Grapevine.Structure.Phyllochron.MultiplyFunction.Constant.FixedValue
[1,]                                                                                       2.573794
[2,]                                                                                      25.238299
[3,]                                                                                      42.055934
[4,]                                                                                      36.334136
Browse[2]> est_values
         [,1]    [,2]     [,3]     [,4]
[1,] 2.573794 25.2383 42.05593 36.33414
Browse[2]> graphics::plot(init_values[,1], est_values[,1],
+                main = "Estimated vs Initial values of the parameters for different repetitions",
+                graphics::text(init_values[,1], est_values[,1], pos=1,col="black"),
+                xlim = c(bounds$lb[1],bounds$ub[1]),
+                ylim = c(bounds$lb[1],bounds$ub[1]),
+                xlab = paste("Initial value for", param_names[1]),
+                ylab = paste("Estimated value for", param_names[1]))
Error in xy.coords(x, y, xlabel, ylabel, log) : 
  'x' and 'y' lengths differ
Environment:
  1: source("~/Bugfixing/junqi-zhu/1-croptimizr/script.r")
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: script.r#70: estim_param(obs_list = obs_list, crit_function = crit_function, model_function = apsimx_wrapper, model_options = model_options, optim_options = optim_options, optim_method =
  6: estim_param.R#89: optim_switch(param_names, obs_list, crit_function, model_function, model_options, optim_method, optim_options, param_info)
  7: optim_switch.R#26: wrap_nloptr(param_names = param_names, obs_list = obs_list, crit_function = crit_function, model_function = model_function, model_options = model_options, optim_option
  8: wrap_nloptr.R#73: tryCatch({
    {
        .doTrace(browser())
        grDevices::pdf(file = file.path(path_results, "EstimatedVSinit.pdf"), width = 9, height = 9)
    }
    for (ipar in
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1]])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: wrap_nloptr.R#75: graphics::plot(init_values[, 1], est_values[, 1], main = "Estimated vs Initial values of the parameters for different repetitions", graphics::text(init_values[, 1], est
  13: plot.default(init_values[, 1], est_values[, 1], main = "Estimated vs Initial values of the parameters for different repetitions", graphics::text(init_values[, 1], est_values[, 1], pos = 
  14: xy.coords(x, y, xlabel, ylabel, log)
  15: stop("'x' and 'y' lengths differ")
Browse[2]> sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    LC_MONETARY=English_Australia.1252 LC_NUMERIC=C                       LC_TIME=English_Australia.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] stringr_1.4.0         DiceDesign_1.8-1      nloptr_1.2.1          dplyr_0.8.4           ApsimOnR_0.0.0.9000   CroptimizR_0.1.0.9003

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.3           pillar_1.4.3         compiler_3.6.2       iterators_1.0.12     tools_3.6.2          digest_0.6.24        bit_1.1-15.2         boot_1.3-23         
 [9] lme4_1.1-21          lubridate_1.7.4      memoise_1.1.0        RSQLite_2.2.0        tibble_2.1.3         nlme_3.1-142         lattice_0.20-38      pkgconfig_2.0.3     
[17] rlang_0.4.4          Matrix_1.2-18        foreach_1.4.8        DBI_1.1.0            rstudioapi_0.11      parallel_3.6.2       mvtnorm_1.0-11       spaMM_3.1.2         
[25] coda_0.19-3          DHARMa_0.2.7         vctrs_0.2.3          BayesianTools_0.1.7  bit64_0.9-7          tidyselect_1.0.0     grid_3.6.2           glue_1.3.1          
[33] R6_2.4.1             pbapply_1.4-2        minqa_1.2.4          blob_1.2.1           purrr_0.3.3          magrittr_1.5         codetools_0.2-16     MASS_7.3-51.4       
[41] splines_3.6.2        assertthat_0.2.1     Brobdingnag_1.2-6    bridgesampling_0.8-1 proxy_0.4-23         stringi_1.4.6        crayon_1.3.4

The formulation of likelihood functions

Issue Name

The formulation of likelihood functions

Expected Behavior

Get some references or explanation

Current Behavior

Failure Information (for bugs)

Context

Please provide any relevant information about why the likelihood functions are:

${ \prod_{j} {\sum_{i,k} [Y_{ijk}-f_{jk}(X_i;\theta)]^2 )}^{-(n_j/2+2)} }$
and
${ \prod_{j} {( \sum_{i} [ \frac{1}{n_{ij}} \sum_{k} (Y_{ijk}-f_{jk}(X_i;\theta))^2 ] )} ^{-(N_j/2+2)} }$

I try to look for some formulation of likelihood functions in this article. But I don't find such a formulation similar to the formulations in CroptimizR.

Also, there is a typo of the first formulation in this page, it may be:
${ \prod_{j} ({\sum_{i,k} [Y_{ijk}-f_{jk}(X_i;\theta)]^2 )}^{-(n_j/2+2)} }$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.