Rでシリアルポートと通信する

http://r.789695.n4.nabble.com/Serial-connections-td2017474.html
pipeを使ってファイルを読めるみたいだけど、使い方がわからない。

f <- pipe("ttys /dev/tty.usbmodemfd121")
> f
                  description                         class 
"ttys /dev/tty.usbmodemfd121"                        "pipe" 
                         mode                          text 
                          "r"                        "text" 
                       opened                      can read 
                     "closed"                         "yes" 
                    can write 
                        "yes" 
#で、どうしろというのか

Rserveパッケージを使ってJavaと通信する方法もあるみたいだけど、
Javaはなあ、という感じ。
http://www.r-bloggers.com/connecting-the-real-world-to-r-with-an-arduino/

PythonでRを呼び出すのが無難みたい。