- using R version 4.0.0 alpha (2020-04-01 r78130)
- using platform: x86_64-apple-darwin17.0 (64-bit)
- using session charset: UTF-8
- checking for file ‘Causata/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘Causata’ version ‘4.2-0’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘Causata’ can be installed ... [11s/16s] OK
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... NOTE
Malformed Title field: should not end in a period.
- 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
- 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 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 ... [10s/14s] NOTE
BinaryCut: no visible global function definition for ‘quantile’
CleanNaFromContinuousFunction: no visible global function definition
for ‘median’
CleanNaFromContinuousFunction: no visible global function definition
for ‘na.omit’
GetMetadata.Connect: no visible global function definition for
‘dbGetQuery’
GetRawData.Connect: no visible global function definition for
‘dbGetQuery’
Linearity: no visible global function definition for ‘median’
PredictivePowerCv: no visible global function definition for ‘sd’
ReadCausataCsv: no visible global function definition for ‘read.csv’
ToPmml.GlmnetModelDefinition: no visible global function definition for
‘coef’
ToPmml.GlmnetModelDefinition: no visible global function definition for
‘terms.formula’
ValidateModel: no visible global function definition for ‘predict’
predict.GlmnetModelDefinition: no visible global function definition
for ‘model.matrix’
predict.GlmnetModelDefinition: no visible binding for global variable
‘contrasts’
predict.GlmnetModelDefinition: no visible global function definition
for ‘predict’
Undefined global functions or variables:
coef contrasts dbGetQuery median model.matrix na.omit predict
quantile read.csv sd terms.formula
Consider adding
importFrom("stats", "coef", "contrasts", "median", "model.matrix",
"na.omit", "predict", "quantile", "sd", "terms.formula")
importFrom("utils", "read.csv")
to your NAMESPACE file.
- 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in Makefiles ... OK
- checking for GNU extensions in Makefiles ... OK
- checking include directives in Makefiles ... OK
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [8s/10s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [48s/66s] ERROR
Running ‘testBinaryCut.R’ [3s/4s]
Running ‘testBinaryPredictor.R’ [3s/4s]
Running ‘testCleanNaFromContinuous.R’ [3s/4s]
Running ‘testCleanNaFromFactor.R’ [3s/4s]
Running ‘testDiscretize.R’ [3s/4s]
Running ‘testFocalPointQuery.R’ [3s/3s]
Running ‘testGetStratifiedSample.R’ [3s/4s]
Running ‘testMergeLevels.R’ [3s/4s]
Running ‘testModelDefinition.R’ [3s/4s]
Running ‘testPredictivePower.R’ [2s/3s]
Running ‘testPreprocess.R’ [2s/3s]
Running ‘testQuery.R’ [2s/3s]
Running ‘testQueryFunctions.R’ [3s/4s]
Running ‘testReliableModelCreation.R’ [3s/4s]
Running ‘testReliableVariableCreation.R’ [3s/4s]
Running ‘testToPmml.R’ [4s/6s]
Running ‘testTransformationReplay.R’ [3s/3s]
Running the tests in ‘tests/testTransformationReplay.R’ failed.
Last 13 lines of output:
+ expect_that(f1, is_equivalent_to(f2))
+
+ # Now, create a new data.frame and apply the same transformation to it. Any values in the factor we have
+ # that is not "a", or "b" should be replaced with "Other"
+ #
+ new.df <- data.frame(var__AP=c("a", "b", "c", "c", "c", "d", "a", NA))
+ transformed <- transformer(new.df)
+ expect_that(transformed$var__AP, is_equivalent_to(factor(c("a", "b", "Other", "Other", "Other", "Other", "a", NA))))
+ })
Error: Test failed: 'Applying MergeLevels can be replayed'
* `x` not equivalent to `expected`.
Types not compatible: character is not integer
* `x` not equivalent to `expected`.
Types not compatible: character is not integer
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking running R code from vignettes ... [0s/0s] NONE
‘Causata-vignette.rnw’... [0s/0s] OK
- checking re-building of vignette outputs ... [41s/57s] OK
- checking PDF version of manual ... OK
- DONE
Status: 1 ERROR, 2 NOTEs