Alaios
2011-Nov-02 22:37 UTC
[R] Error: serialization is too large to store in a raw vector
Dear all, I have quite large code (with lapply and mclapply) and I am getting the following error. Error: serialization is too large to store in a raw vector Is it possible to ask from R to extend the Error messages with more details? I would like to see where this problem exists. B.R Alex [[alternative HTML version deleted]]
Bert Gunter
2011-Nov-02 22:45 UTC
[R] Error: serialization is too large to store in a raw vector
?traceback ?options ## especially _recover_ for the error option. -- Bert On Wed, Nov 2, 2011 at 3:37 PM, Alaios <alaios@yahoo.com> wrote:> Dear all, > I have quite large code (with lapply and mclapply) > and I am getting the following error. > > Error: serialization is too large to store in a raw vector > > Is it possible to ask from R to extend the Error messages with more > details? > I would like to see where this problem exists. > > B.R > Alex > [[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. >-- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm [[alternative HTML version deleted]]
David Winsemius
2011-Nov-03 00:56 UTC
[R] Error: serialization is too large to store in a raw vector
On Nov 2, 2011, at 6:37 PM, Alaios <alaios at yahoo.com> wrote:> Dear all, > I have quite large code (with lapply and mclapply) > and I am getting the following error. > > Error: serialization is too large to store in a raw vector > > Is it possible to ask from R to extend the Error messages with more details? > I would like to see where this problem exists. >?traceback> B.R > Alex > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
Martin Morgan
2011-Nov-03 12:24 UTC
[R] Error: serialization is too large to store in a raw vector
On 11/02/2011 03:37 PM, Alaios wrote:> Dear all, > I have quite large code (with lapply and mclapply) > and I am getting the following error. > > Error: serialization is too large to store in a raw vector > > Is it possible to ask from R to extend the Error messages with more details? > I would like to see where this problem exists.This is likely from the return value of mclapply's FUN: parallel:::sendMaster tries to serialize it, and fails. serialize(integer(.Machine$integer.max / 4), NULL, TRUE) do further data reduction before trying to return the results (probably a parallel 'best practices' anyway). Neither traceback() nor options(error=recover) deal gracefully with mclapply errors like this. Hope that helps, Martin> > B.R > Alex > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.-- Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: M1-B861 Telephone: 206 667-2793