Hi,

I am trying to convert an R object to JSON, using Rpad::json. I get the
following error when there is an empty vector in there.
Using R version 2.15.0 (2012-03-30) on OpenSUSE 11.4 on an Intel machine;
Rpad - 1.3.0

>Rpad::json(numeric(0))

> class(Rpad::json(numeric(0)))
[1] "json"

> Rpad::json(list(x=numeric(0)))
Error in res[i] <- json(x[[i]]) : replacement has length zero
> traceback()
2: json.list(list(x = numeric(0)))
1: Rpad::json(list(x = numeric(0)))


Am I not using the right package/function or options? Will appreciate help.

Thanks and regards
Dinesh

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to