PostgreSQL support for R as a procedural language (PL).
The full error message is: ERROR: invalid input syntax for integer: "1e+06" SQL state: 22P02 Context: In PL/R function …