Hi all, I have some time trying to find a way to stop a loop for( ) until the
user presses the enter key or any other one and the loop can continue.
This could
be an example:

 library(MASS)
 data <- data.frame(mvrnorm(1000,rep(0,5),Sigma=diag(1,5)))
 for(i in 1:dim(data)[2]){
  plot(density(data[,i]), main=paste('histogram',i))
 #here something like waituntil command
 }

Thank's in advance
Juan A. Hernandez
Spain.

	[[alternative HTML version deleted]]

