Dinesh, I can't answer your question, but its my understanding that Rpad is no longer being developed as the original person (Tom Short) doesn't have enough time and no one else has taken it over. So if you can find any other package that does what you need, I would use that one instead.
Thanks, Roger -----Original Message----- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Dinesh K. Somani Sent: Tuesday, July 24, 2012 12:27 PM To: r-help@r-project.org Subject: [R] getting error in Rpad::json() 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. *************************************************************** This message is for the named person's use only. It may\...{{dropped:11}} ______________________________________________ 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.