trying to interface with R