copy to R package