I have no problem with the code. Internet problem means the program cannot get the price from coinbase server or btcchina server.
I'll put the monitoring service online in the few days.
I tried to run this on windows with R and the installed packages. It kept saying this, "[1] "internet problem"
Error: object 'tt' not found"
I would be interested in any script, website, that could chart and compare coinbase and btcchina if anyone knows of others or could tell me why this doesn't run.