{"action":"created","issue":{"url":"https://api.github.com/repos/apache/arrow/issues/2947","repository_url":"https://api.github.com/repos/apache/arrow","labels_url":"https://api.github.com/repos/apache/arrow/issues/2947/labels{/name}","comments_url":"https://api.github.com/repos/apache/arrow/issues/2947/comments","events_url":"https://api.github.com/repos/apache/arrow/issues/2947/events","html_url":"https://github.com/apache/arrow/pull/2947","id":379840264,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMTgzMDc2","number":2947,"title":"ARROW-3439: [R] R language bindings for Feather format","user":{"login":"romainfrancois","id":2625526,"node_id":"MDQ6VXNlcjI2MjU1MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/2625526?v=4","gravatar_id":"","url":"https://api.github.com/users/romainfrancois","html_url":"https://github.com/romainfrancois","followers_url":"https://api.github.com/users/romainfrancois/followers","following_url":"https://api.github.com/users/romainfrancois/following{/other_user}","gists_url":"https://api.github.com/users/romainfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/romainfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainfrancois/subscriptions","organizations_url":"https://api.github.com/users/romainfrancois/orgs","repos_url":"https://api.github.com/users/romainfrancois/repos","events_url":"https://api.github.com/users/romainfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/romainfrancois/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-11-12T15:56:28Z","updated_at":"2018-11-14T20:20:10Z","closed_at":"2018-11-14T15:19:06Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/arrow/pulls/2947","html_url":"https://github.com/apache/arrow/pull/2947","diff_url":"https://github.com/apache/arrow/pull/2947.diff","patch_url":"https://github.com/apache/arrow/pull/2947.patch"},"body":"``` r\r\nlibrary(arrow, warn.conflicts = FALSE)\r\nlibrary(tibble)\r\n\r\ntib <- tibble(x = 1:10, y = rnorm(10), z = letters[1:10])\r\ntib\r\n#> # A tibble: 10 x 3\r\n#>        x       y z    \r\n#>    <int>   <dbl> <chr>\r\n#>  1     1  0.315  a    \r\n#>  2     2 -1.16   b    \r\n#>  3     3  0.0980 c    \r\n#>  4     4  0.836  d    \r\n#>  5     5 -1.12   e    \r\n#>  6     6  0.118  f    \r\n#>  7     7  2.74   g    \r\n#>  8     8 -0.323  h    \r\n#>  9     9  0.291  i    \r\n#> 10    10  1.40   j\r\ntf <- tempfile()\r\nwrite_feather(tib, tf)\r\n\r\n# reads back into an arrow::Table\r\ntab1 <- read_feather(tf)\r\ntab1\r\n#> arrow::Table\r\n\r\n# convert that to tibble\r\nas_tibble(tab1)\r\n#> # A tibble: 10 x 3\r\n#>        x       y z    \r\n#>    <int>   <dbl> <chr>\r\n#>  1     1  0.315  a    \r\n#>  2     2 -1.16   b    \r\n#>  3     3  0.0980 c    \r\n#>  4     4  0.836  d    \r\n#>  5     5 -1.12   e    \r\n#>  6     6  0.118  f    \r\n#>  7     7  2.74   g    \r\n#>  8     8 -0.323  h    \r\n#>  9     9  0.291  i    \r\n#> 10    10  1.40   j\r\nidentical(tib, as_tibble(tab1))\r\n#> [1] TRUE\r\n\r\n# read it through reticulate\r\nlibrary(reticulate)\r\npa <- import(\"pyarrow\")\r\n\r\n# read straight to a data frame via pyarrow.feather.read_feather\r\ntab2 <- pa$feather$read_feather(tf)\r\n# just so that we cna compare\r\nattr(tab2, \"pandas.index\") <-  NULL\r\ntab2\r\n#>     x          y z\r\n#> 1   1  0.3148670 a\r\n#> 2   2 -1.1583740 b\r\n#> 3   3  0.0980070 c\r\n#> 4   4  0.8360379 d\r\n#> 5   5 -1.1171395 e\r\n#> 6   6  0.1177422 f\r\n#> 7   7  2.7407804 g\r\n#> 8   8 -0.3229787 h\r\n#> 9   9  0.2910557 i\r\n#> 10 10  1.4015148 j\r\n\r\nidentical(tib, as_tibble(tab2))\r\n#> [1] TRUE\r\n```\r\n\r\n<sup>Created on 2018-11-12 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1.9000)</sup>"},"comment":{"url":"https://api.github.com/repos/apache/arrow/issues/comments/438804296","html_url":"https://github.com/apache/arrow/pull/2947#issuecomment-438804296","issue_url":"https://api.github.com/repos/apache/arrow/issues/2947","id":438804296,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODgwNDI5Ng==","user":{"login":"javierluraschi","id":3478847,"node_id":"MDQ6VXNlcjM0Nzg4NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/3478847?v=4","gravatar_id":"","url":"https://api.github.com/users/javierluraschi","html_url":"https://github.com/javierluraschi","followers_url":"https://api.github.com/users/javierluraschi/followers","following_url":"https://api.github.com/users/javierluraschi/following{/other_user}","gists_url":"https://api.github.com/users/javierluraschi/gists{/gist_id}","starred_url":"https://api.github.com/users/javierluraschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javierluraschi/subscriptions","organizations_url":"https://api.github.com/users/javierluraschi/orgs","repos_url":"https://api.github.com/users/javierluraschi/repos","events_url":"https://api.github.com/users/javierluraschi/events{/privacy}","received_events_url":"https://api.github.com/users/javierluraschi/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T20:20:10Z","updated_at":"2018-11-14T20:20:10Z","author_association":"CONTRIBUTOR","body":"@romainfrancois Looks like this PR makes the R arrow bindings depend on an unreleased-version of `arrow`, the workaround is to build arrow from source. Is this intentional?"}}
{"actor":{"display_login":"javierluraschi"}}