* using log directory 'd:/Rcompile/CRANpkg/local/3.4/RPresto.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'RPresto/DESCRIPTION' ... OK * this is package 'RPresto' version '1.3.2' * package encoding: UTF-8 * 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 ... OK * checking for portable file names ... OK * checking whether package 'RPresto' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * 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 ... [6s] OK * checking Rd files ... OK * checking Rd metadata ... 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 C/C++/Fortran sources/headers ... 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' ... [15s] ERROR Running 'testthat.R' [13s] Running the tests in 'tests/testthat.R' failed. Complete output: > # Copyright (c) 2015-present, Facebook, Inc. > # All rights reserved. > # > # This source code is licensed under the BSD-style license found in the > # LICENSE file in the root directory of this source tree. An additional grant > # of patent rights can be found in the PATENTS file in the same directory. > > library("testthat") > library("DBI") > library("RPresto") > > test_check("RPresto") -- 1. Error: db_explain works with mock (@test-db_explain.R#26) --------------- `con` must not be NULL 1: with_mock(`httr::POST` = mock_httr_replies(mock_httr_response("http://localhost:8000/v1/statement", status_code = 200, state = "QUEUED", request_body = "EXPLAIN SHOW TABLES", next_uri = "http://localhost:8000/query_1/1")), `httr::GET` = mock_httr_replies(mock_httr_response("http://localhost:8000/query_1/1", status_code = 200, data = data.frame(e = "explanation", stringsAsFactors = FALSE), state = "FINISHED")), { result <- dplyr::db_explain(s[["con"]], dplyr::sql("SHOW TABLES")) expect_equal(result, "explanation") }) at testthat/test-db_explain.R:26 2: eval(code[[length(code)]], parent.frame()) 3: eval(code[[length(code)]], parent.frame()) 4: dplyr::db_explain(s[["con"]], dplyr::sql("SHOW TABLES")) 5: db_explain.PrestoConnection(s[["con"]], dplyr::sql("SHOW TABLES")) 6: build_sql("EXPLAIN ", sql) 7: stop("`con` must not be NULL", call. = FALSE) -- 2. Failure: as() works (@test-translate_sql.R#26) -------------------------- translate_sql(pmax(x), con = s[["con"]]) not equal to dplyr::sql("GREATEST(\"x\")"). 1/1 mismatches x[1]: "greatest(\"x\")" y[1]: "GREATEST(\"x\")" == testthat results =========================================================== OK: 278 SKIPPED: 28 WARNINGS: 1 FAILED: 2 1. Error: db_explain works with mock (@test-db_explain.R#26) 2. Failure: as() works (@test-translate_sql.R#26) Error: testthat unit tests failed Execution halted ** running tests for arch 'x64' ... [14s] ERROR Running 'testthat.R' [13s] Running the tests in 'tests/testthat.R' failed. Complete output: > # Copyright (c) 2015-present, Facebook, Inc. > # All rights reserved. > # > # This source code is licensed under the BSD-style license found in the > # LICENSE file in the root directory of this source tree. An additional grant > # of patent rights can be found in the PATENTS file in the same directory. > > library("testthat") > library("DBI") > library("RPresto") > > test_check("RPresto") -- 1. Error: db_explain works with mock (@test-db_explain.R#26) --------------- `con` must not be NULL 1: with_mock(`httr::POST` = mock_httr_replies(mock_httr_response("http://localhost:8000/v1/statement", status_code = 200, state = "QUEUED", request_body = "EXPLAIN SHOW TABLES", next_uri = "http://localhost:8000/query_1/1")), `httr::GET` = mock_httr_replies(mock_httr_response("http://localhost:8000/query_1/1", status_code = 200, data = data.frame(e = "explanation", stringsAsFactors = FALSE), state = "FINISHED")), { result <- dplyr::db_explain(s[["con"]], dplyr::sql("SHOW TABLES")) expect_equal(result, "explanation") }) at testthat/test-db_explain.R:26 2: eval(code[[length(code)]], parent.frame()) 3: eval(code[[length(code)]], parent.frame()) 4: dplyr::db_explain(s[["con"]], dplyr::sql("SHOW TABLES")) 5: db_explain.PrestoConnection(s[["con"]], dplyr::sql("SHOW TABLES")) 6: build_sql("EXPLAIN ", sql) 7: stop("`con` must not be NULL", call. = FALSE) -- 2. Failure: as() works (@test-translate_sql.R#26) -------------------------- translate_sql(pmax(x), con = s[["con"]]) not equal to dplyr::sql("GREATEST(\"x\")"). 1/1 mismatches x[1]: "greatest(\"x\")" y[1]: "GREATEST(\"x\")" == testthat results =========================================================== OK: 278 SKIPPED: 28 WARNINGS: 1 FAILED: 2 1. Error: db_explain works with mock (@test-db_explain.R#26) 2. Failure: as() works (@test-translate_sql.R#26) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs