Fixed R export