CRAN Package Check Results for Package RMariaDB

Last updated on 2019-02-23 05:53:51 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.6 82.44 34.08 116.52 OK
r-devel-linux-x86_64-debian-gcc 1.0.6 61.82 27.14 88.96 WARN
r-devel-linux-x86_64-fedora-clang 1.0.6 192.04 ERROR
r-devel-linux-x86_64-fedora-gcc 1.0.6 165.68 ERROR
r-devel-windows-ix86+x86_64 1.0.6 487.00 155.00 642.00 NOTE
r-patched-linux-x86_64 1.0.6 73.63 32.52 106.15 OK
r-patched-solaris-x86 1.0.6 146.00 OK
r-release-linux-x86_64 1.0.6 OK
r-release-windows-ix86+x86_64 1.0.6 506.00 177.00 683.00 NOTE
r-release-osx-x86_64 1.0.6 OK
r-oldrel-windows-ix86+x86_64 1.0.6 393.00 231.00 624.00 NOTE
r-oldrel-osx-x86_64 1.0.6 OK

Check Details

Version: 1.0.6
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     DbResult.cpp:81:41: warning: catching polymorphic type ‘class MariaResultPrep::UnsupportedPS’ by value [-Wcatch-value=]
Flavors: r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.6
Check: examples
Result: ERROR
    Running examples in ‘RMariaDB-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: dbConnect,MariaDBDriver-method
    > ### Title: Connect/disconnect to a MariaDB DBMS
    > ### Aliases: dbConnect,MariaDBDriver-method MariaDB
    >
    > ### ** Examples
    >
    > ## Not run:
    > ##D # Connect to a MariaDB database running locally
    > ##D con <- dbConnect(RMariaDB::MariaDB(), dbname = "mydb")
    > ##D # Connect to a remote database with username and password
    > ##D con <- dbConnect(RMariaDB::MariaDB(), host = "mydb.mycompany.com",
    > ##D user = "abc", password = "def")
    > ##D # But instead of supplying the username and password in code, it's usually
    > ##D # better to set up a group in your .my.cnf (usually located in your home
    > ##D directory). Then it's less likely you'll inadvertently share them.
    > ##D con <- dbConnect(RMariaDB::MariaDB(), group = "test")
    > ##D
    > ##D # Always cleanup by disconnecting the database
    > ##D dbDisconnect(con)
    > ## End(Not run)
    >
    > # All examples use the rs-dbi group by default.
    > if (mariadbHasDefault()) {
    + con <- dbConnect(RMariaDB::MariaDB(), dbname = "test")
    + con
    + dbDisconnect(con)
    + }
    > if (mariadbHasDefault()) {
    + # connect to a database and load some data
    + con <- dbConnect(RMariaDB::MariaDB(), dbname = "test")
    + dbWriteTable(con, "USArrests", datasets::USArrests, temporary = TRUE)
    +
    + # query
    + rs <- dbSendQuery(con, "SELECT * FROM USArrests")
    + d1 <- dbFetch(rs, n = 10) # extract data in chunks of 10 rows
    + dbHasCompleted(rs)
    + d2 <- dbFetch(rs, n = -1) # extract all remaining data
    + dbHasCompleted(rs)
    + dbClearResult(rs)
    + dbListTables(con)
    +
    + # clean up
    + dbDisconnect(con)
    + }
    Error in result_fetch(res@ptr, n = n) : Error fetching buffer:
    Calls: dbListTables ... .local -> dbFetch -> dbFetch -> .local -> result_fetch
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.6
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(RMariaDB)
     >
     > test_check("RMariaDB")
     ── 1. Error: can read file from disk (@test-dbWriteTable.R#38) ────────────────
    
     1: expect_equal(dbReadTable(con, "dat"), expected) at testthat/test-dbWriteTable.R:38
     2: quasi_label(enquo(object), label)
     3: eval_bare(get_expr(quo), get_env(quo))
     4: dbReadTable(con, "dat")
     5: dbReadTable(con, "dat")
     6: .local(conn, name, ...)
     7: dbGetQuery(conn, paste("SELECT * FROM ", name), row.names = row.names)
     8: dbGetQuery(conn, paste("SELECT * FROM ", name), row.names = row.names)
     9: .local(conn, statement, ...)
     10: dbFetch(rs, n = n, ...)
     11: dbFetch(rs, n = n, ...)
     12: .local(res, n, ...)
     13: result_fetch(res@ptr, n = n)
    
     ── 2. Error: prepared statements and SHOW queries (@test-queries.R#17) ────────
    
     1: dbGetQuery(conn, "SHOW PLUGINS") at testthat/test-queries.R:17
     2: dbGetQuery(conn, "SHOW PLUGINS")
     3: .local(conn, statement, ...)
     4: dbFetch(rs, n = n, ...)
     5: dbFetch(rs, n = n, ...)
     6: .local(res, n, ...)
     7: result_fetch(res@ptr, n = n)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 4 SKIPPED: 1 FAILED: 2
     1. Error: can read file from disk (@test-dbWriteTable.R#38)
     2. Error: prepared statements and SHOW queries (@test-queries.R#17)
    
     Error: testthat unit tests failed
     In addition: Warning messages:
     1: Unknown tweaks: list_temporary_tables
     2: In for (i in iseq) { :
     call dbDisconnect() when finished working with a connection
     Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.6
Check: installed package size
Result: NOTE
     installed size is 6.5Mb
     sub-directories of 1Mb or more:
     libs 6.2Mb
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64