You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wdcplot plots of factors with a single level are broken #7
Factors with a single level get interpreted by wdcplot as many levels of a single character each. This likely has to do with rserve-js's json function doing the wrong thing.
would prefer to fix this at the rserve.js level... i know, another big refactoring, but we are special casing everything that can be an array of size one to work around the way rserve.js thinks it's a scalar.
I'd like to not change json if possible. maybe the solution is to allow a function to return the unconverted raw javascript object from rserve-js. Right now everything in ocap mode calls json.
Yeah, I'm thinking that ideally clients of rserve.js could register that they want particular parameters really to be arrays and not scalarized. I don't know how this would happen though.
Activity
gordonwoodhull commentedon Mar 4, 2015
would prefer to fix this at the rserve.js level... i know, another big refactoring, but we are special casing everything that can be an array of size one to work around the way rserve.js thinks it's a scalar.
gordonwoodhull commentedon Mar 4, 2015
From @cscheid on May 6, 2014 18:8
I'd like to not change
jsonif possible. maybe the solution is to allow a function to return the unconverted raw javascript object from rserve-js. Right now everything in ocap mode calls json.gordonwoodhull commentedon Mar 4, 2015
Yeah, I'm thinking that ideally clients of rserve.js could register that they want particular parameters really to be arrays and not scalarized. I don't know how this would happen though.
gordonwoodhull commentedon Mar 4, 2015
I wouldn't want to change it everywhere, agreed. Usually what looks like a scalar, is.
gordonwoodhull commentedon Mar 4, 2015
To contradict myself: we are working around arrays of size one being interpreted as scalars, all over the place. Do that again here.