* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/nmm.Rcheck’ * using R Under development (unstable) (2022-07-10 r82573) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * checking for file ‘nmm/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘nmm’ version ‘0.9’ * 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 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 ‘nmm’ can be installed ... [25s/25s] 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 * 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 ... [42s/49s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [28s/42s] OK * checking examples with --run-donttest ... [11s/12s] ERROR Running examples in ‘nmm-Ex.R’ failed The error most likely occurred in: > ### Name: dataM > ### Title: Example dataset > ### Aliases: dataM > ### Keywords: datasets > > ### ** Examples > > ## No test: > data(dataM) > library(magrittr) > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:data.table’: between, first, last The following object is masked from ‘package:car’: recode The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > if (requireNamespace("recipes", quietly = TRUE)&requireNamespace("Stat2Data", quietly = TRUE)) { + data("MathPlacement", package="Stat2Data") + head(MathPlacement) + library(recipes) + # As some of the data is missing, k-nearest neighbors (knn) imputation is + # used to fill the gaps. This is done with recipes package and function + # step_knnimpute. + dataM <- recipe(~ ., data = MathPlacement) %>% + step_knnimpute(everything()) %>% prep() %>% juice() + # Afterwards we create a categorical variable that will show whether a + # student took a course which was too high, too low, the recommended one or + # something else happened: + dataM %<>% mutate(Student = 1:n(), DR_Course = case_when( + TooHigh == 1 ~ "chigh", + TooLow == 1 ~ "alow", + RecTaken == 1 ~ "bnormal", + TRUE ~"dother" + )) + # We remove observations with ambiguous course status: + dataM %<>% filter(DR_Course!="dother") + dataM %>% select(DR_Course) %>% table %>% t + } Attaching package: ‘recipes’ The following object is masked from ‘package:Matrix’: update The following object is masked from ‘package:stats’: step Error: `step_knnimpute()` was deprecated in recipes 0.1.16 and is now defunct. Please use `step_impute_knn()` instead. Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/nmm.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 4:21.20, 193.39 + 16.32