R_ProcessEvents only in interactive mode
fix indentation issue