[R] sink stack memory??

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon May 16 19:41:34 CEST 2005


Anubhav Manglick wrote:

> Dear R-mailers
> 
> I want to store data in a seperate file named 'XYZ'
> so I uses sink function for it
> i runs the loop , say 100 times, and so every of the 100 times the
> function is called the result must go to the file. But after soem time
> of running it says
> " 
> Error in sink("C:/XYZ", append = TRUE) : 
>         sink stack is full
> "
> 
> but i have enough memory on the disk for this result
> 
> I would be highly obliged to know the problem/mistake I am amking


I guess you forgot to close the connection?
See the code (in connections.c) and the help page. The latter tells us
"The stack is of up to 21 connections (20 diversions)."

If you did not forget to close the connection, please send an easily 
reproducible example.

Uwe Ligges




> thanking you 
> 
> anubhav
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list