Demo of socket connection to R