Last updated on 2018-08-02 06:46:55 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.0.25 | 2.91 | 44.71 | 47.62 | NOTE | |
r-devel-linux-x86_64-debian-gcc | 0.0.25 | 2.26 | 35.07 | 37.33 | NOTE | |
r-devel-linux-x86_64-fedora-clang | 0.0.25 | 49.84 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 0.0.25 | 47.96 | ERROR | |||
r-devel-windows-ix86+x86_64 | 0.0.25 | 9.00 | 64.00 | 73.00 | NOTE | |
r-patched-linux-x86_64 | 0.0.25 | 2.13 | 38.88 | 41.01 | NOTE | |
r-release-linux-x86_64 | 0.0.25 | 1.91 | 38.98 | 40.89 | NOTE | |
r-release-windows-ix86+x86_64 | 0.0.25 | 7.00 | 62.00 | 69.00 | NOTE | |
r-release-osx-x86_64 | 0.0.25 | ERROR | ||||
r-oldrel-windows-ix86+x86_64 | 0.0.25 | 8.00 | 49.00 | 57.00 | NOTE | |
r-oldrel-osx-x86_64 | 0.0.25 | ERROR |
Version: 0.0.25
Check: R code for possible problems
Result: NOTE
dbGetDistinct,RMongo-character-character-character: no visible global
function definition for ‘read.table’
dbGetQueryForKeys,RMongo-character-character-character-numeric-numeric:
no visible global function definition for ‘read.csv’
Undefined global functions or variables:
read.csv read.table
Consider adding
importFrom("utils", "read.csv", "read.table")
to your NAMESPACE file.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64
Version: 0.0.25
Check: examples
Result: ERROR
Running examples in ‘RMongo-Ex.R’ failed
The error most likely occurred in:
> ### Name: dbAggregate-methods
> ### Title: Performing a MongoDB aggregate query
> ### Aliases: dbAggregate dbAggregate-methods
> ### dbAggregate,RMongo,character,character-method
>
> ### ** Examples
>
> mongo <- mongoDbConnect("test")
> # insert two records
> dbInsertDocument(mongo, "test_data", '{"foo": "bar", "size": 5 }')
[1] "ok"
> dbInsertDocument(mongo, "test_data", '{"foo": "nl", "size": 10 }')
[1] "ok"
> output <- dbAggregate(mongo, "test_data", c(' { "$project" : { "baz" : "$foo" } } ',
+ ' { "$group" : { "_id" : "$baz" } } ',
+ ' { "$match" : { "_id" : "bar" } } '))
Error in .jcall(rmongo.object@javaMongo, "[S", "dbAggregate", collection, :
com.mongodb.CommandFailureException: { "serverUsed" : "/127.0.0.1:27017" , "ok" : 0.0 , "errmsg" : "The 'cursor' option is required, except for aggregate with the explain argument" , "code" : 9 , "codeName" : "FailedToParse"}
Calls: dbAggregate -> dbAggregate -> .jcall -> .jcheck
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.0.25
Check: tests
Result: ERROR
Running ‘RMongo-Ex.R’
Running the tests in ‘tests/RMongo-Ex.R’ failed.
Complete output:
> Sys.setenv(NOAWT = "1")
>
> library("RUnit")
> library("RMongo")
Loading required package: rJava
> library('rJava')
>
> test.dbInsertDocument <- function(){
+ mongo <- mongoDbConnect("test")
+ output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')
+ dbDisconnect(mongo)
+
+ checkEquals("ok", output)
+ }
>
> test.dbRemoveQuery <- function(){
+ mongo <- mongoDbConnect("test")
+ output <- dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+
+ checkEquals("ok", output)
+ }
>
> test.dbGetQuery <- function(){
+ mongo <- mongoDbConnect("test")
+ output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')
+ output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar with spaces"}')
+ output <- dbGetQuery(mongo, 'test_data', '{"foo": { "$regex": "bar*", "$options": "i"} }')
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+ checkEquals("bar", as.character(output[1,]$foo))
+ checkEquals("bar with spaces", as.character(output[2,]$foo))
+ }
>
> test.dbGetQuerySkipAndLimit <- function(){
+ mongo <- mongoDbConnect("test")
+ output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')
+ output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')
+ output <- dbGetQuery(mongo, "test_data", '{"foo": "bar"}', 0, 1)
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+ checkEquals(1, length(output[output$foo == 'bar', 1]))
+ }
>
> test.dbGetQueryWithEmptyCollection <- function(){
+ mongo <- mongoDbConnect('test')
+ output <- dbGetQuery(mongo, 'test_data', '{"EMPTY": "EMPTY"}')
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+ checkEquals(data.frame(), output)
+ }
>
> test.dbGetQuerySorting <- function(){
+ #insert the records using r-mongo-scala project
+ mongo <- mongoDbConnect("test")
+ dbInsertDocument(mongo, "test_data", '{"foo": "bar"}')
+ dbInsertDocument(mongo, "test_data", '{"foo": "newbar"}')
+
+ output <- dbGetQuery(mongo, "test_data", '{ "$query": {}, "$orderby": { "foo": -1 } }}')
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+
+ checkEquals("newbar", as.character(output[1,]$foo))
+ }
>
> test.dbGetQueryForKeys <- function(){
+ mongo <- mongoDbConnect("test")
+ output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar", "size": 5}')
+ results <- dbGetQueryForKeys(mongo, "test_data", '{"foo": "bar"}', '{"foo": 1}')
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+
+ checkEquals(TRUE, any(names(results) == "foo"))
+ checkEquals(TRUE, any(names(results) != "size"))
+ }
>
> test.dbInsertStructured <- function(){
+ mongo <- mongoDbConnect("test")
+ output <- dbInsertDocument(mongo, "test_data", '{"foo": "bar", "structured": {"foo": "baz"}}')
+ output <- dbGetQuery(mongo, "test_data", '{}')
+
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+ checkEquals("{ \"foo\" : \"baz\"}", as.character(output[1,]$structured))
+ }
>
> test.dbGetDistinct <- function(){
+ mongo <- mongoDbConnect("test")
+ dbInsertDocument(mongo, "test_data", '{"foo": "bar and baz"}')
+ dbInsertDocument(mongo, "test_data", '{"foo": "baz and bar"}')
+
+ output <- dbGetDistinct(mongo, "test_data", 'foo')
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+
+ checkEquals("bar and baz", as.character(output[1]))
+ checkEquals("baz and bar", as.character(output[2]))
+ }
>
> test.dbAggregate <- function(){
+ mongo <- mongoDbConnect("test")
+ dbInsertDocument(mongo, "test_data", '{"foo": "bar", "size": 5 }')
+ dbInsertDocument(mongo, "test_data", '{"foo": "nl", "size": 10 }')
+
+ output <- dbAggregate(mongo, "test_data", c(' { "$project" : { "baz" : "$foo" } } ',
+ ' { "$group" : { "_id" : "$baz" } } ',
+ ' { "$match" : { "_id" : "bar" } } '))
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+
+ # print(length(output))
+ print(as.character(output[1]))
+
+ checkEquals("{ \"_id\" : \"bar\"}", as.character(output[1]))
+ # checkEquals("bar", as.character(output[1]))
+ }
>
> test.dbInsertDocument()
[1] TRUE
> test.dbRemoveQuery()
[1] TRUE
> test.dbGetQuery()
[1] TRUE
> test.dbGetQuerySkipAndLimit()
[1] TRUE
> test.dbGetQueryWithEmptyCollection()
[1] TRUE
> test.dbGetQuerySorting()
[1] TRUE
> test.dbGetQueryForKeys()
[1] TRUE
> test.dbInsertStructured()
[1] TRUE
> test.dbGetDistinct()
[1] TRUE
> test.dbAggregate()
Error in .jcall(rmongo.object@javaMongo, "[S", "dbAggregate", collection, :
com.mongodb.CommandFailureException: { "serverUsed" : "/127.0.0.1:27017" , "ok" : 0.0 , "errmsg" : "The 'cursor' option is required, except for aggregate with the explain argument" , "code" : 9 , "codeName" : "FailedToParse"}
Calls: test.dbAggregate -> dbAggregate -> dbAggregate -> .jcall -> .jcheck
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.0.25
Check: examples
Result: ERROR
Running examples in ‘RMongo-Ex.R’ failed
The error most likely occurred in:
> ### Name: dbAggregate-methods
> ### Title: Performing a MongoDB aggregate query
> ### Aliases: dbAggregate dbAggregate-methods
> ### dbAggregate,RMongo,character,character-method
>
> ### ** Examples
>
> mongo <- mongoDbConnect("test")
> # insert two records
> dbInsertDocument(mongo, "test_data", '{"foo": "bar", "size": 5 }')
Error in .jcall(rmongo.object@javaMongo, "S", "dbInsertDocument", collection, :
com.mongodb.MongoException$Network: Write operation to server /127.0.0.1:27017 failed on database test
Calls: dbInsertDocument -> dbInsertDocument -> .jcall -> .jcheck
Execution halted
Flavor: r-release-osx-x86_64
Version: 0.0.25
Check: tests
Result: ERROR
Running ‘RMongo-Ex.R’ [4s/3s]
Running the tests in ‘tests/RMongo-Ex.R’ failed.
Last 13 lines of output:
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+
+ # print(length(output))
+ print(as.character(output[1]))
+
+ checkEquals("{ \"_id\" : \"bar\"}", as.character(output[1]))
+ # checkEquals("bar", as.character(output[1]))
+ }
>
> test.dbInsertDocument()
Error in .jcall(rmongo.object@javaMongo, "S", "dbInsertDocument", collection, :
com.mongodb.MongoException$Network: Write operation to server /127.0.0.1:27017 failed on database test
Calls: test.dbInsertDocument ... dbInsertDocument -> dbInsertDocument -> .jcall -> .jcheck
Execution halted
Flavor: r-release-osx-x86_64
Version: 0.0.25
Check: examples
Result: ERROR
Running examples in ‘RMongo-Ex.R’ failed
The error most likely occurred in:
> ### Name: dbAggregate-methods
> ### Title: Performing a MongoDB aggregate query
> ### Aliases: dbAggregate dbAggregate-methods
> ### dbAggregate,RMongo,character,character-method
>
> ### ** Examples
>
> mongo <- mongoDbConnect("test")
> # insert two records
> dbInsertDocument(mongo, "test_data", '{"foo": "bar", "size": 5 }')
Error in .jcall(rmongo.object@javaMongo, "S", "dbInsertDocument", collection, :
com.mongodb.MongoException$Network: Write operation to server /127.0.0.1:27017 failed on database test
Calls: dbInsertDocument -> dbInsertDocument -> .jcall -> .jcheck -> .Call
Execution halted
Flavor: r-oldrel-osx-x86_64
Version: 0.0.25
Check: tests
Result: ERROR
Running ‘RMongo-Ex.R’ [3s/3s]
Running the tests in ‘tests/RMongo-Ex.R’ failed.
Last 13 lines of output:
+ dbRemoveQuery(mongo, "test_data", '{}')
+ dbDisconnect(mongo)
+
+ # print(length(output))
+ print(as.character(output[1]))
+
+ checkEquals("{ \"_id\" : \"bar\"}", as.character(output[1]))
+ # checkEquals("bar", as.character(output[1]))
+ }
>
> test.dbInsertDocument()
Error in .jcall(rmongo.object@javaMongo, "S", "dbInsertDocument", collection, :
com.mongodb.MongoException$Network: Write operation to server /127.0.0.1:27017 failed on database test
Calls: test.dbInsertDocument ... dbInsertDocument -> dbInsertDocument -> .jcall -> .jcheck -> .Call
Execution halted
Flavor: r-oldrel-osx-x86_64