API v2 exports to R

@bonushenricus, sharing with you this previous post which should be helpful: