[Bioc-devel] interactive example/demo in vignette
James W. MacDonald
jmacdon at med.umich.edu
Fri Sep 9 15:15:53 CEST 2011
Hi Andreas,
I believe you want something of the form
if(interactive){
<some code>
}else{
<other code>
}
Best,
Jim
On 9/9/2011 9:00 AM, Andreas Heider wrote:
> Dear mailing list,
> I have an example embedded in my vignette that runs and prints just fine
> when executed directly from within R (also when created via Sweave() ).
> The problem is, that at some point, there is user input needed (a simple "y"
> / "n" dicision). However, when "y" is the case, a file written to the
> current working directory needs to be edited.
> How can I make it run smoothly?
> Can I tell R, that when non-interactiive mode, it should answer "y" by
> itself, and overwrite the produced file?
> Is it as simple as answer<- "y"?
>
> Thanks, Andreas
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
--
James W. MacDonald, M.S.
Biostatistician
Douglas Lab
University of Michigan
Department of Human Genetics
5912 Buhl
1241 E. Catherine St.
Ann Arbor MI 48109-5618
734-615-7826
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
More information about the Bioc-devel
mailing list