I got the code from youtube. The coder indicated that it is working. I copied it, but it did not work on my PC.
The code below produces the error Error in open.con
Error in open.con