GLEON / rLakeAnalyzer

An R version of Lake Analyzer
43 stars 26 forks source link

new version of R doesn't want us to recycle vectors of length 1 #75

Closed jordansread closed 7 years ago

jordansread commented 7 years ago
Warning messages:
1: In layerD - Zcv :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

Looks like this happens here: https://github.com/GLEON/rLakeAnalyzer/blob/8e75ca95c715b41ea25ae7a07bcdcfebb581cdd7/R/schmidt.stability.R#L86

fixed w/ (layerD - as.vector(Zcv))