Currently, the generated glue code between R and C uses a very naive method to transfer scalar values to C. Since in R all values are vectors, the code simply takes the first element of that vector.
This should be improved, and it should be checked whether the data that was passed is indeed a scalar, i.e. whether it has length 1.
Currently, the generated glue code between R and C uses a very naive method to transfer scalar values to C. Since in R all values are vectors, the code simply takes the first element of that vector.
This should be improved, and it should be checked whether the data that was passed is indeed a scalar, i.e. whether it has length 1.