sendToConsole function

Send code to the R console