This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Description
When we pass a RStringVector from the client with all NULL values we get incorrect and inconsistent results:
- R console output produces boolean/logical
True - incorrect
- Return type in the calling client is
RDataNA which is not a vector with NULL values - incorrect
Results should be consistent with R, for example:
> x <- c(NULL, NULL, NULL, NULL)
> x
NULL
> y <- c(NULL, NULL, "foo", NULL)
> y
[1] "foo"
Reproduce:
List<String> v = new ArrayList<String>();
v.add(null);
v.add(null);
v.add(null);
v.add(null);
RDataFactory.createStringVector("x", v);
List<String> v = new ArrayList<String>();
v.add(null);
v.add(null);
v.add("foo");
v.add(null);
RDataFactory.createStringVector("y", v);
View response. It should be consistent with R vectors.