Could you click "Show Details" and post another screenshot please?
This info may also help:
SCRIPT functions require that the return type of the R code matches the type of SCRIPT function called. For instance, a SCRIPT_REAL() function expects a vector of reals, SCRIPT_STR() expects a vector of strings, etc. This error indicates the data type returned by the function does not match expected value.
1. Run code in R to verify that the value being returned is what is expected (use attached file for type testing template)
2. Use the SCRIPT function that matches the type of value being returned.
3. See the following page on type conversion in R for information on converting data types: http://www.statmethods.net/management/typeconversion.html