* using log directory ‘/Users/ripley/R/packages/tests-devel/nanny.Rcheck’ * using R Under development (unstable) (2021-04-08 r80148) * using platform: aarch64-apple-darwin20.3.0 (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘nanny/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘nanny’ version ‘0.1.8’ * 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 ‘nanny’ can be installed ... [6s/16s] OK * checking installed package size ... OK * checking package directory ... OK * checking ‘build’ 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 use of S3 registration ... OK * checking dependencies in R code ... NOTE Namespaces in Imports field not imported from: ‘knitr’ ‘lifecycle’ ‘lme4’ ‘methods’ All declared Imports should be used. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [5s/16s] OK * 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘nanny-Ex.R’ failed The error most likely occurred in: > ### Name: rotate_dimensions > ### Title: Rotate two dimensions (e.g., principal components) of an > ### arbitrary angle > ### Aliases: rotate_dimensions rotate_dimensions,spec_tbl_df-method > ### rotate_dimensions,tbl_df-method > > ### ** Examples > > > mtcars_tidy_MDS = reduce_dimensions(mtcars_tidy, car_model, feature, value, method="MDS") nanny says: to access the raw results do `attr(..., "internals")$MDS` > > rotate_dimensions(mtcars_tidy_MDS, `Dim1`, `Dim2`, .element = car_model, rotation_degrees = 45) Error: Can't subset columns that don't exist. ✖ Column `Dim1` doesn't exist. Backtrace: █ 1. ├─nanny::rotate_dimensions(...) 2. ├─nanny::rotate_dimensions(...) 3. │ └─nanny:::get_rotated_dimensions(...) 4. │ └─`%>%`(...) 5. ├─dplyr::pull(., n) 6. ├─dplyr::ungroup(.) 7. ├─dplyr::tally(.) 8. ├─dplyr::group_by_at(...) 9. │ └─dplyr:::manip_at(...) 10. │ └─dplyr:::tbl_at_syms(.tbl, .vars, .include_group_vars = .include_group_vars) 11. │ └─dplyr:::tbl_at_vars(tbl, vars, .include_group_vars = .include_group_vars) 12. │ └─dplyr::tbl_vars(tbl) 13. │ ├─dplyr:::new_sel_vars(tbl_vars_dispatch(x), group_vars(x)) 14. │ │ └─base::structure(...) 15. │ └─dplyr:::tbl_vars_dispatch(x) 16. ├─dplyr::distinct(.) 17. ├─dplyr::select(., !!.element, !!dimension_1_column, !!dimension_2_column) 18. └─dplyr:::select.data.frame(...) 19. └─tidyselect::eval_select(expr(c(...)), .data) 20. └─tidyselect:::eval_select_impl(...) 21. ├─tidyselect:::with_subscript_errors(...) 22. │ ├─base::tryCatch(...) 23. │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers) 24. │ │ └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]]) 25. │ │ └─base:::doTryCatch(return(expr), name, parentenv, handler) 26. │ └─tidyselect:::instrument_base_errors(expr) 27. │ └─base::withCallingHandlers(...) 28. └─tidyselect:::vars_select_eval(...) 29. └─tidyselect:::walk_data_tree(expr, data_mask, context_mask) 30. └─tidyselect:::eval_c(expr, data_mask, context_mask) 31. └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init) 32. └─tidyselect:::walk_data_tree(new, data_mask, context_mask) 33. └─tidyselect:::as_indices_sel_impl(...) 34. └─tidyselect:::as_indices_impl(x, vars, strict = strict) 35. └─tidyselect:::chr_as_locations(x, vars) 36. └─vctrs::vec_as_location(x, n = length(vars), names = vars) 37. └─(function () ... 38. └─vctrs:::stop_subscript_oob(...) 39. └─vctrs:::stop_subscript(...) Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(nanny) Attaching package: 'nanny' The following object is masked from 'package:base': subset > > test_check("nanny") ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure (test-methods.R:21:3): reduce dimension MDS ───────────────────────── ncol(res) not equal to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Failure (test-methods.R:24:3): reduce dimension MDS ───────────────────────── ncol(res) not equal to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Error (test-methods.R:29:3): rotate dimensions ────────────────────────────── Error: Can't subset columns that don't exist. ✖ Column `Dim1` doesn't exist. Backtrace: █ 1. ├─`%>%`(...) test-methods.R:29:2 2. ├─nanny::rotate_dimensions(...) 3. ├─nanny::rotate_dimensions(...) 4. │ └─nanny:::get_rotated_dimensions(...) 5. │ └─`%>%`(...) 6. ├─dplyr::pull(., n) 7. ├─dplyr::ungroup(.) 8. ├─dplyr::tally(.) 9. ├─dplyr::group_by_at(...) 10. │ └─dplyr:::manip_at(...) 11. │ └─dplyr:::tbl_at_syms(.tbl, .vars, .include_group_vars = .include_group_vars) 12. │ └─dplyr:::tbl_at_vars(tbl, vars, .include_group_vars = .include_group_vars) 13. │ └─dplyr::tbl_vars(tbl) 14. │ ├─dplyr:::new_sel_vars(tbl_vars_dispatch(x), group_vars(x)) 15. │ │ └─base::structure(...) 16. │ └─dplyr:::tbl_vars_dispatch(x) 17. ├─dplyr::distinct(.) 18. ├─dplyr::select(., !!.element, !!dimension_1_column, !!dimension_2_column) 19. └─dplyr:::select.data.frame(...) 20. └─tidyselect::eval_select(expr(c(...)), .data) 21. └─tidyselect:::eval_select_impl(...) 22. ├─tidyselect:::with_subscript_errors(...) 23. │ ├─base::tryCatch(...) 24. │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers) 25. │ │ └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]]) 26. │ │ └─base:::doTryCatch(return(expr), name, parentenv, handler) 27. │ └─tidyselect:::instrument_base_errors(expr) 28. │ └─base::withCallingHandlers(...) 29. └─tidyselect:::vars_select_eval(...) 30. └─tidyselect:::walk_data_tree(expr, data_mask, context_mask) 31. └─tidyselect:::eval_c(expr, data_mask, context_mask) 32. └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init) 33. └─tidyselect:::walk_data_tree(new, data_mask, context_mask) 34. └─tidyselect:::as_indices_sel_impl(...) 35. └─tidyselect:::as_indices_impl(x, vars, strict = strict) 36. └─tidyselect:::chr_as_locations(x, vars) 37. └─vctrs::vec_as_location(x, n = length(vars), names = vars) 38. └─(function () ... 39. └─vctrs:::stop_subscript_oob(...) 40. └─vctrs:::stop_subscript(...) [ FAIL 3 | WARN 6 | SKIP 0 | PASS 28 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... WARNING Error(s) in re-building vignettes: --- re-building ‘introdution.Rmd’ using knitr Warning: attributes are not identical across measure variables; they will be dropped nanny says: to access the raw results do `attr(..., "internals")$MDS` Quitting from lines 130-137 (introdution.Rmd) Error: processing vignette 'introdution.Rmd' failed with diagnostics: Make sure your numeric 'columns' values are less than or equal to 3. columns = c(4, 5, 6) --- failed re-building ‘introdution.Rmd’ SUMMARY: processing the following file failed: ‘introdution.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs, 1 WARNING, 1 NOTE See ‘/Users/ripley/R/packages/tests-devel/nanny.Rcheck/00check.log’ for details. 51.06 real 39.90 user 4.70 sys