[R] last.warning and function problem

Marta Rufino mrufino at cmima.csic.es
Tue Nov 5 16:52:58 CET 2002


I am a newbie in R and I am trying to create a function, that includes
several functions inside.
To avoid that everything stops if there is an error, I have this statement 

bla = function(....){

inside the function, which if I use it normally, it works fine, but once I
use it with the funciotn it gives me an error like:

$"remove: variable "last.warning" was not found"

which breaks my function.
I just want to make it do: if exists the file last warning, remove it, if
not, just proceed...
Does anyone knows why this happens? How can I avoid it?
Thanks in advance.


Marta Rufino

Centre Mediterrani d'Investigacions Marines i Ambientals
Passeig Maritim 37-49

Tfno:34 93 230 95 40
Tfax:34 93 230 95 55


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list