romainfrancois opened a new pull request #11751:
URL: https://github.com/apache/arrow/pull/11751


   This adds `$code()` to `DataType` objects in R, which is then used by 
`Schema$code()`. 
   
   In both case, `$code()` produces an R call, e.g. 
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> See arrow_info() for available features
   
   int32()$code()
   #> int32()
   struct(a = timestamp())$code()
   #> struct(a = timestamp(unit = "s"))
   
   schema(
     a = float64(), 
     b = list_of(large_utf8()), 
     c = struct(
       d = fixed_size_binary(byte_width = 7L), 
       e = null()
     )
   )$code()
   #> schema(a = float64(), b = list_of(large_utf8()), c = struct(d = 
fixed_size_binary(byte_width = 7L), 
   #>     e = null()))
   ```
   
   <sup>Created on 2021-11-22 by the [reprex 
package](https://reprex.tidyverse.org) (v2.0.1.9000)</sup>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to