You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ap...@apache.org on 2019/07/17 11:50:23 UTC

[arrow] branch master updated: ARROW-5969: [R] Fix R lint Failures

This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 9984d81  ARROW-5969: [R] Fix R lint Failures
9984d81 is described below

commit 9984d815d7d3fafa9316f27d0ea8266f98e0bf74
Author: Antoine Pitrou <an...@python.org>
AuthorDate: Wed Jul 17 13:50:13 2019 +0200

    ARROW-5969: [R] Fix R lint Failures
    
    Author: Antoine Pitrou <an...@python.org>
    
    Closes #4895 from pitrou/r-lint-failures and squashes the following commits:
    
    a31c0a550 <Antoine Pitrou>  Fix R lint Failures
---
 r/src/compute.cpp | 3 +--
 r/src/table.cpp   | 6 +++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/r/src/compute.cpp b/r/src/compute.cpp
index 2adb4f6..b3a25b7 100644
--- a/r/src/compute.cpp
+++ b/r/src/compute.cpp
@@ -77,8 +77,7 @@ std::shared_ptr<arrow::Table> Table__cast(
   using ColumnVector = std::vector<std::shared_ptr<arrow::ChunkedArray>>;
   ColumnVector columns(nc);
   for (int i = 0; i < nc; i++) {
-    columns[i] = ChunkedArray__cast(table->column(i),
-                                    schema->field(i)->type(), options);
+    columns[i] = ChunkedArray__cast(table->column(i), schema->field(i)->type(), options);
   }
   return arrow::Table::Make(schema, std::move(columns), table->num_rows());
 }
diff --git a/r/src/table.cpp b/r/src/table.cpp
index c54b9d8..aebe3cb 100644
--- a/r/src/table.cpp
+++ b/r/src/table.cpp
@@ -47,14 +47,14 @@ std::shared_ptr<arrow::Schema> Table__schema(const std::shared_ptr<arrow::Table>
 }
 
 // [[arrow::export]]
-std::shared_ptr<arrow::ChunkedArray> Table__column(const std::shared_ptr<arrow::Table>& table,
-                                             int i) {
+std::shared_ptr<arrow::ChunkedArray> Table__column(
+    const std::shared_ptr<arrow::Table>& table, int i) {
   return table->column(i);
 }
 
 // [[arrow::export]]
 std::shared_ptr<arrow::Field> Table__field(const std::shared_ptr<arrow::Table>& table,
-                                             int i) {
+                                           int i) {
   return table->field(i);
 }