$ 0 0 The workaround I am using is to pass the desired scalar value as a vector with all the rows the same and then take the first element of the vector as my scalar in R.