Skip to content
Prev 342898 / 398506 Next

break loop with keypress

Thanks Greg.
I guess another option is to call a C function directly. On Windows I
see there is a function _kbhit() in conio.h. Not sure if it would be
that simple.
Write a .c file

#include <conio.h>

int main(void)
{
  int ch;
  ch= _kbhit();
  return ch;
}

Then do the necessary stuff to call that from R.
http://mazamascience.com/WorkingWithData/?p=1067

Bill
On 06/08/2014, Greg Snow <538280 at gmail.com> wrote: