[R-SIG-Mac] USB I/O via R (Charly)

Atul Sharma atul.sharma at mcgill.ca
Fri Jan 30 00:33:28 CET 2009

On 26-Jan-09, at 6:00 AM, <r-sig-mac-request at stat.math.ethz.ch> <r-sig-mac-request at stat.math.ethz.ch 
 > wrote:

> By way of closing the thread and thanking Charly for the suggestion.  
> RPy did turn out to be the easiest solution for accessing the serial  
> hardware from within R, and by calling the routine from within R via  
> system(python ...),  everyone is happy.

> A word to anyone requiring a hardware interface for data  
> acquisition:  When I flush the input buffers using the  
> serial.Serial.flushInput() method in the pySerial library, it   
> appears to permanently shut down my Mac serial ports. This was  
> independent of device and driver (it occurs with direct USB and over  
> a prolific USB-serial converter), and it is easily avoided by not  
> flushing the input buffer, if  compatible with your application. I  
> have not tried other serial libraries, such as USPP or pyVisa. I  
> know this is a question for the Python list, but is worth keeping in  
> mind when selecting your external interface.


More information about the R-SIG-Mac mailing list