Running ‘testthat.R’ [5s/12s]
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#25) -------------------
  'src_sql' is not an exported object from 'namespace:dplyr'
  1: setup_mock_dplyr_connection() at testthat/test-db_explain.R:25
  2: src_presto(RPresto::Presto(), schema = "test", catalog = "catalog", host = "http://localhost", 
         port = 8000, user = Sys.getenv("USER"), session.timezone = test.timezone(), parameters = list())
  3: dplyr::src_sql
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  2. Error: db_query_fields works with mock (@test-db_query_fields.R#42) ---------
  'src_sql' is not an exported object from 'namespace:dplyr'
  1: setup_mock_dplyr_connection() at testthat/test-db_query_fields.R:42
  2: src_presto(RPresto::Presto(), schema = "test", catalog = "catalog", host = "http://localhost", 
         port = 8000, user = Sys.getenv("USER"), session.timezone = test.timezone(), parameters = list())
  3: dplyr::src_sql
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  testthat results ================================================================
  OK: 175 SKIPPED: 33 FAILED: 2
  1. Error: db_explain works with mock (@test-db_explain.R#25) 
  2. Error: db_query_fields works with mock (@test-db_query_fields.R#42) 
  
  Error: testthat unit tests failed
  Execution halted