opam-version: "2.0"
maintainer: "unixjunkie@sdf.org"
authors: ["Francois Berenger"]
homepage: "https://github.com/UnixJunkie/oplsr"
bug-reports: "https://github.com/UnixJunkie/oplsr/issues"
dev-repo: "git+https://github.com/UnixJunkie/oplsr.git"
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
build: ["dune" "build" "-p" name "-j" jobs]
install: ["R" "CMD" "BATCH" "install_pls.r"]
depends: [
  "batteries"
  "conf-gnuplot"
  "conf-r"
  "cpm"
  "dolog" {>= "4.0.0" & < "5.0.0"}
  "dune" {>= "1.0.0"}
  "minicli" {>= "5.0.0"}
  "ocaml"
  "parany" {>= "11.0.0"}
]
synopsis: "OCaml wrapper for the R 'pls' package"
description: """
Some OCaml functions to drive the Partial Least Squares regressor
from the R 'pls' package.
This package really fires up and talks to an R interpreter.

Bibliography:
=============
Wehrens, R., & Mevik, B. H. (2007).
The pls package: principal component and partial least squares regression in R.
https://www.jstatsoft.org/index.php/jss/article/view/v018i02/v18i02.pdf
"""
post-messages: """
Please interact with R to install needed things in user-space:
R
install.packages('pls', repos='http://cran.r-project.org')""" {failure}
extra-files: ["install_pls.r" "md5=2600c14c1b3f9e109ec651e8f763dd8e"]
url {
  src: "https://github.com/UnixJunkie/oplsr/archive/v8.0.1.tar.gz"
  checksum: "md5=f87beecab830659b1329ce472559bbbd"
}
