On Tue, Mar 6, 2012 at 1:20 PM, Federico Calboli <f.calb...@imperial.ac.uk> wrote: > On 6 Mar 2012, at 18:01, Sarah Goslee wrote: > >> The help for warning offers some suggestions. > > none that seem to work though.
Where's your reproducible example of this? "Doesn't seem to work" is unanswerable. > F > > > >> >> Sarah >> >> On Tue, Mar 6, 2012 at 12:53 PM, Federico Calboli >> <f.calb...@imperial.ac.uk> wrote: >>> Hi All, >>> >>> I am writing a function that reads a file in >>> >>> myfile = file('myfile.raw', 'rb') >>> . >>> . >>> . >>> . >>> . >>> close(myfile) >>> >>> No matter what, I get the warning >>> >>> Warning message: >>> closing unused connection 3 (myfile.raw) >>> >>> Since the whole thing is in a function, I'd like to avoid unecessary noise >>> for the user, and I'd like to kill the warning -- without having to mess >>> with global options. >>> >>> Any ideas how? >>> >>> BW >>> >>> F >>> >> -- >> Sarah Goslee >> http://www.functionaldiversity.org > > -- > Federico C. F. Calboli > Neuroepidemiology and Ageing Research > Imperial College, St. Mary's Campus > Norfolk Place, London W2 1PG > > Tel +44 (0)20 75941602 Fax +44 (0)20 75943193 > > f.calboli [.a.t] imperial.ac.uk > f.calboli [.a.t] gmail.com > -- Sarah Goslee http://www.stringpage.com http://www.sarahgoslee.com http://www.functionaldiversity.org ______________________________________________ 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.