Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4995

[R] Make sure winbuilder tests pass for package

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: R

      Description

      Current submission to winbuilder triggers the following errors:

      * using log directory 'd:/RCompile/CRANguest/R-release/arrow.Rcheck'
      * using R version 3.5.3 (2019-03-11)
      * using platform: x86_64-w64-mingw32 (64-bit)
      * using session charset: ISO8859-1
      * checking for file 'arrow/DESCRIPTION' ... OK
      * this is package 'arrow' version '0.12.0.9000'
      * package encoding: UTF-8
      * checking CRAN incoming feasibility ... NOTE
      Maintainer: 'Javier Luraschi <javier@rstudio.com>'
      
      New submission
      
      Version contains large components (0.12.0.9000)
      * checking package namespace information ... OK
      * checking package dependencies ... OK
      * checking if this is a source package ... OK
      * checking if there is a namespace ... OK
      * checking for hidden files and directories ... NOTE
      Found the following hidden files and directories:
        .travis.yml
      These were most likely included in error. See section 'Package
      structure' in the 'Writing R Extensions' manual.
      
      CRAN-pack does not know about
        .travis.yml
      * checking for portable file names ... OK
      * checking whether package 'arrow' can be installed ... OK
      * checking installed package size ... NOTE
        installed size is  8.6Mb
        sub-directories of 1Mb or more:
          R      1.9Mb
          libs   6.5Mb
      * checking package directory ... OK
      * checking DESCRIPTION meta-information ... OK
      * checking top-level files ... NOTE
      Non-standard file/directory found at top level:
        'clang_format.sh'
      * checking for left-over files ... OK
      * checking index information ... OK
      * checking package subdirectories ... OK
      * checking R files for non-ASCII characters ... OK
      * checking R files for syntax errors ... OK
      * loading checks for arch 'i386'
      ** checking whether the package can be loaded ... OK
      ** checking whether the package can be loaded with stated dependencies ... OK
      ** checking whether the package can be unloaded cleanly ... OK
      ** checking whether the namespace can be loaded with stated dependencies ... OK
      ** checking whether the namespace can be unloaded cleanly ... OK
      ** checking loading without being on the library search path ... OK
      ** checking use of S3 registration ... OK
      * loading checks for arch 'x64'
      ** checking whether the package can be loaded ... OK
      ** checking whether the package can be loaded with stated dependencies ... OK
      ** checking whether the package can be unloaded cleanly ... OK
      ** checking whether the namespace can be loaded with stated dependencies ... OK
      ** checking whether the namespace can be unloaded cleanly ... OK
      ** checking loading without being on the library search path ... OK
      ** checking use of S3 registration ... OK
      * checking dependencies in R code ... OK
      * checking S3 generic/method consistency ... OK
      * checking replacement functions ... OK
      * checking foreign function calls ... OK
      * checking R code for possible problems ... [8s] OK
      * checking Rd files ... OK
      * checking Rd metadata ... OK
      * checking Rd line widths ... OK
      * checking Rd cross-references ... OK
      * checking for missing documentation entries ... OK
      * checking for code/documentation mismatches ... OK
      * checking Rd \usage sections ... OK
      * checking Rd contents ... OK
      * checking for unstated dependencies in examples ... OK
      * checking line endings in shell scripts ... OK
      * checking line endings in C/C++/Fortran sources/headers ... OK
      * checking line endings in Makefiles ... OK
      * checking compilation flags in Makevars ... OK
      * checking for GNU extensions in Makefiles ... OK
      * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
      * checking pragmas in C/C++ headers and code ... OK
      * checking compiled code ... OK
      * checking examples ...
      ** running examples for arch 'i386' ... [1s] OK
      ** running examples for arch 'x64' ... [1s] OK
      * checking for unstated dependencies in 'tests' ... OK
      * checking tests ...
      ** running tests for arch 'i386' ... [7s] ERROR
        Running 'testthat.R' [6s]
      Running the tests in 'tests/testthat.R' failed.
      Complete output:
        > # Licensed to the Apache Software Foundation (ASF) under one
        > # or more contributor license agreements.  See the NOTICE file
        > # distributed with this work for additional information
        > # regarding copyright ownership.  The ASF licenses this file
        > # to you under the Apache License, Version 2.0 (the
        > # "License"); you may not use this file except in compliance
        > # with the License.  You may obtain a copy of the License at
        > #
        > #   http://www.apache.org/licenses/LICENSE-2.0
        > #
        > # Unless required by applicable law or agreed to in writing,
        > # software distributed under the License is distributed on an
        > # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
        > # KIND, either express or implied.  See the License for the
        > # specific language governing permissions and limitations
        > # under the License.
        > 
        > library(testthat)
        > library(arrow)
        
        Attaching package: 'arrow'
        
        The following object is masked from 'package:utils':
        
            timestamp
        
        The following objects are masked from 'package:base':
        
            array, table
        
        > library(tibble)
        > 
        > test_check("arrow")
        -- 1. Error: read_table handles various input streams (ARROW-3450, ARROW-3505) (
        could not find function "defer"
        1: local_tempfile() at testthat/test-Table.R:28
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 2. Error: Can read csv file (@test-arrow-csv-.R#21)  ------------------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-arrow-csv-.R:21
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 3. Error: feather read/write round trip (@test-feather.R#23)  ---------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:23
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 4. Error: feather handles columns = <names> (@test-feather.R#63)  -----------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:63
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 5. Error: feather handles columns = <integer> (@test-feather.R#76)  ---------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:76
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 6. Error: feather read/write round trip (@test-feather.R#89)  ---------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:89
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 7. Error: arrow::table round trip (@test-read-write.R#87)  ------------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-read-write.R:87
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 8. Error: arrow::table round trip handles NA in integer and numeric (@test-re
        could not find function "defer"
        1: local_tempfile() at testthat/test-read-write.R:117
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 9. Error: RecordBatchFileWriter / RecordBatchFileReader roundtrips (@test-rea
        could not find function "defer"
        1: local_tempfile() at testthat/test-read_record_batch.R:26
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 10. Error: read_record_batch() handles (raw|Buffer|InputStream, Schema) (ARRO
        could not find function "defer"
        1: read_record_batch(raw, schema) at testthat/test-read_record_batch.R:54
        2: read_record_batch.raw(raw, schema)
        3: close_on_exit(BufferReader(obj))
        4: defer_parent(x$close(), ...)
        5: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        6: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 11. Error: read_record_batch() can handle (Message, Schema) parameters (ARROW
        could not find function "defer"
        1: close_on_exit(BufferReader(raw)) at testthat/test-read_record_batch.R:68
        2: defer_parent(x$close(), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        == testthat results  ===========================================================
        OK: 723 SKIPPED: 2 FAILED: 11
        1. Error: read_table handles various input streams (ARROW-3450, ARROW-3505) (@test-Table.R#28) 
        2. Error: Can read csv file (@test-arrow-csv-.R#21) 
        3. Error: feather read/write round trip (@test-feather.R#23) 
        4. Error: feather handles columns = <names> (@test-feather.R#63) 
        5. Error: feather handles columns = <integer> (@test-feather.R#76) 
        6. Error: feather read/write round trip (@test-feather.R#89) 
        7. Error: arrow::table round trip (@test-read-write.R#87) 
        8. Error: arrow::table round trip handles NA in integer and numeric (@test-read-write.R#117) 
        9. Error: RecordBatchFileWriter / RecordBatchFileReader roundtrips (@test-read_record_batch.R#26) 
        1. ...
        
        Error: testthat unit tests failed
        Execution halted
      ** running tests for arch 'x64' ... [7s] ERROR
        Running 'testthat.R' [7s]
      Running the tests in 'tests/testthat.R' failed.
      Complete output:
        > # Licensed to the Apache Software Foundation (ASF) under one
        > # or more contributor license agreements.  See the NOTICE file
        > # distributed with this work for additional information
        > # regarding copyright ownership.  The ASF licenses this file
        > # to you under the Apache License, Version 2.0 (the
        > # "License"); you may not use this file except in compliance
        > # with the License.  You may obtain a copy of the License at
        > #
        > #   http://www.apache.org/licenses/LICENSE-2.0
        > #
        > # Unless required by applicable law or agreed to in writing,
        > # software distributed under the License is distributed on an
        > # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
        > # KIND, either express or implied.  See the License for the
        > # specific language governing permissions and limitations
        > # under the License.
        > 
        > library(testthat)
        > library(arrow)
        
        Attaching package: 'arrow'
        
        The following object is masked from 'package:utils':
        
            timestamp
        
        The following objects are masked from 'package:base':
        
            array, table
        
        > library(tibble)
        > 
        > test_check("arrow")
        -- 1. Error: read_table handles various input streams (ARROW-3450, ARROW-3505) (
        could not find function "defer"
        1: local_tempfile() at testthat/test-Table.R:28
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 2. Error: Can read csv file (@test-arrow-csv-.R#21)  ------------------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-arrow-csv-.R:21
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 3. Error: feather read/write round trip (@test-feather.R#23)  ---------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:23
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 4. Error: feather handles columns = <names> (@test-feather.R#63)  -----------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:63
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 5. Error: feather handles columns = <integer> (@test-feather.R#76)  ---------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:76
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 6. Error: feather read/write round trip (@test-feather.R#89)  ---------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-feather.R:89
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 7. Error: arrow::table round trip (@test-read-write.R#87)  ------------------
        could not find function "defer"
        1: local_tempfile() at testthat/test-read-write.R:87
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 8. Error: arrow::table round trip handles NA in integer and numeric (@test-re
        could not find function "defer"
        1: local_tempfile() at testthat/test-read-write.R:117
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 9. Error: RecordBatchFileWriter / RecordBatchFileReader roundtrips (@test-rea
        could not find function "defer"
        1: local_tempfile() at testthat/test-read_record_batch.R:26
        2: defer_parent(unlink(tf), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 10. Error: read_record_batch() handles (raw|Buffer|InputStream, Schema) (ARRO
        could not find function "defer"
        1: read_record_batch(raw, schema) at testthat/test-read_record_batch.R:54
        2: read_record_batch.raw(raw, schema)
        3: close_on_exit(BufferReader(obj))
        4: defer_parent(x$close(), ...)
        5: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        6: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        -- 11. Error: read_record_batch() can handle (Message, Schema) parameters (ARROW
        could not find function "defer"
        1: close_on_exit(BufferReader(raw)) at testthat/test-read_record_batch.R:68
        2: defer_parent(x$close(), ...)
        3: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        4: eval(substitute(defer(expr, envir, priority), list(expr = substitute(expr), envir = parent.frame(2), 
               priority = priority)), envir = parent.frame())
        
        == testthat results  ===========================================================
        OK: 723 SKIPPED: 2 FAILED: 11
        1. Error: read_table handles various input streams (ARROW-3450, ARROW-3505) (@test-Table.R#28) 
        2. Error: Can read csv file (@test-arrow-csv-.R#21) 
        3. Error: feather read/write round trip (@test-feather.R#23) 
        4. Error: feather handles columns = <names> (@test-feather.R#63) 
        5. Error: feather handles columns = <integer> (@test-feather.R#76) 
        6. Error: feather read/write round trip (@test-feather.R#89) 
        7. Error: arrow::table round trip (@test-read-write.R#87) 
        8. Error: arrow::table round trip handles NA in integer and numeric (@test-read-write.R#117) 
        9. Error: RecordBatchFileWriter / RecordBatchFileReader roundtrips (@test-read_record_batch.R#26) 
        1. ...
        
        Error: testthat unit tests failed
        Execution halted
      * checking PDF version of manual ... OK
      * DONE
      Status: 2 ERRORs, 4 NOTEs
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                javierluraschi Javier Luraschi
                Reporter:
                javierluraschi Javier Luraschi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 40m
                  5h 40m