Bug #4267
closedRExpression converts nil input into "NA"
0%
Description
If I pass a nil input token to RExpression, it produces an R variable that contains the string "NA" (2 letters) rather than the special NA or NULL values.
Updated by ben leinfelder over 15 years ago
1.) If I use a String Constant actor with the value nil then I get NA as a string in the RExpression actor.
2.) If I use a Constant actor I don't even get any value in the RExpression actor.
I think the first case acts as it should (except that it changes the string value and that might not always be expected even for this very special Ptolemy string).
Case number 2 should give us a non-string NA in the RExpression actor as this bug expects. I'll make that happen.
Updated by ben leinfelder over 15 years ago
nil tokens will now be (non-string) NA values in R.
Note: this is not the same as passing a StingToken("nil") to the RExpression.