send array to R