try command in R
Hi all,
Can anyone tell me how to use 'try' command for a block of commands? Right now I'm using try for each command like this :
try(m<-MAplot(genes(cuff),args[1],args[2]))
try(png('MA_plot.png'))
try(m)
try(dev.off ())
try(print("MA_plot"))
Please help. Thanks :)
• 2,438 views
•
link
1 answer
Log in to answer this question.
Maybe this helps: http://mazamascience.com/WorkingWithData/?p=929
However, I would post this on Stack Overflow, this sounds much more like a general IT question than a bioinformatics one.
Yeah. That's true. Have to take care next time.. Thanks for answering anyways :)