model <- "
var number_heads = data_from_R.number_heads
var number_flips = data_from_R.number_flips
number_heads
"
will return [15]. This is annoying when you are assuming that it will be a single number. It would be good (if possible) to not run toJSON on single values so that number_heads will return 15.
When passing data, a la:
will return
[15]
. This is annoying when you are assuming that it will be a single number. It would be good (if possible) to not runtoJSON
on single values so thatnumber_heads
will return15
.