[R] error in lapply (sorry error in last e-mail)

From: Chibisi Chima-Okereke <chibco_at_gmail.com>
Date: Sun, 02 Nov 2008 09:35:55 +0000

Dear all,

I am getting a error while using lapply to generate plots. The variable ".name" is used to identify each plot in the "main" variable. The method worked once but afterwards seems to throw up an error when used in a different case. The input ...

dataOut <- lapply(names(dataIn), FUN = function(.name){ anotherplotFun(dataIn[[.name]], numb = .name)} )

Throws up the error ...

Error in anotherplotFun(dataIn[[.name]], numb = .name) :   promise already under evaluation: recursive default argument reference or earlier problems?



        [[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. Received on Sun 02 Nov 2008 - 09:38:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 02 Nov 2008 - 10:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive