* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/jjAnno.Rcheck’ * using R Under development (unstable) (2022-12-03 r83400) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * checking for file ‘jjAnno/DESCRIPTION’ ... OK * this is package ‘jjAnno’ version ‘0.0.3’ * 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 ‘jjAnno’ can be installed ... 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 ... 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 ... [11s/11s] ERROR Running examples in ‘jjAnno-Ex.R’ failed The error most likely occurred in: > ### Name: annoRect > ### Title: annoRect > ### Aliases: annoRect > > ### ** Examples > > # =============================== > # test function > > # load data > data(p) > data(pgo) > data(pdotfc) > > # default plot > annoRect(object = p, + annoPos = 'top', + xPosition = c(1:10)) [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" > > # you can set y axis no expand > annoRect(object = p, + annoPos = 'top', + xPosition = c(1:10)) + + ggplot2::scale_y_discrete(expand = c(0,0)) [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" > > # adjust yPosition > annoRect(object = p, + annoPos = 'top', + xPosition = c(1:10), + yPosition = c(11,11.5)) [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" > > # another example annotation GO terms > annoRect(object = pgo, + annoPos = 'right', + yPosition = c(1:15), + pCol = rep('transparent',15), + pFill = rep(c('#F5F0BB','#C4DFAA','#90C8AC'),each = 5), + xPosition = c(3,9.5), + rectWidth = 1) [1] "This palatte have 20 colors!" Error in `new_mapped_discrete()`: ! `as.vector(x)` must be a vector with type . Instead, it has type . Backtrace: ▆ 1. └─jjAnno::annoRect(...) 2. ├─base::print(object) 3. └─ggplot2:::print.ggplot(object) 4. ├─ggplot2::ggplot_build(x) 5. └─ggplot2:::ggplot_build.ggplot(x) 6. └─layout$map_position(data) 7. └─ggplot2 (local) map_position(..., self = self) 8. └─base::lapply(...) 9. └─ggplot2 (local) FUN(X[[i]], ...) 10. └─ggplot2:::scale_apply(layer_data, y_vars, "map", SCALE_Y, self$panel_scales_y) 11. └─base::lapply(...) 12. └─ggplot2 (local) FUN(X[[i]], ...) 13. └─base::lapply(...) 14. └─ggplot2 (local) FUN(X[[i]], ...) 15. └─scales[[i]][[method]](data[[var]][scale_index[[i]]]) 16. └─ggplot2 (local) map(..., self = self) 17. └─ggplot2:::new_mapped_discrete(x) 18. └─vctrs::vec_assert(as.vector(x), double()) 19. └─rlang::abort(...) Execution halted * checking examples with --run-donttest ... [19s/18s] ERROR Running examples in ‘jjAnno-Ex.R’ failed The error most likely occurred in: > ### Name: annoRect > ### Title: annoRect > ### Aliases: annoRect > > ### ** Examples > > # =============================== > # test function > > # load data > data(p) > data(pgo) > data(pdotfc) > > # default plot > annoRect(object = p, + annoPos = 'top', + xPosition = c(1:10)) [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" > > # you can set y axis no expand > annoRect(object = p, + annoPos = 'top', + xPosition = c(1:10)) + + ggplot2::scale_y_discrete(expand = c(0,0)) [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" > > # adjust yPosition > annoRect(object = p, + annoPos = 'top', + xPosition = c(1:10), + yPosition = c(11,11.5)) [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" [1] "This palatte have 20 colors!" > > # another example annotation GO terms > annoRect(object = pgo, + annoPos = 'right', + yPosition = c(1:15), + pCol = rep('transparent',15), + pFill = rep(c('#F5F0BB','#C4DFAA','#90C8AC'),each = 5), + xPosition = c(3,9.5), + rectWidth = 1) [1] "This palatte have 20 colors!" Error in `new_mapped_discrete()`: ! `as.vector(x)` must be a vector with type . Instead, it has type . Backtrace: ▆ 1. └─jjAnno::annoRect(...) 2. ├─base::print(object) 3. └─ggplot2:::print.ggplot(object) 4. ├─ggplot2::ggplot_build(x) 5. └─ggplot2:::ggplot_build.ggplot(x) 6. └─layout$map_position(data) 7. └─ggplot2 (local) map_position(..., self = self) 8. └─base::lapply(...) 9. └─ggplot2 (local) FUN(X[[i]], ...) 10. └─ggplot2:::scale_apply(layer_data, y_vars, "map", SCALE_Y, self$panel_scales_y) 11. └─base::lapply(...) 12. └─ggplot2 (local) FUN(X[[i]], ...) 13. └─base::lapply(...) 14. └─ggplot2 (local) FUN(X[[i]], ...) 15. └─scales[[i]][[method]](data[[var]][scale_index[[i]]]) 16. └─ggplot2 (local) map(..., self = self) 17. └─ggplot2:::new_mapped_discrete(x) 18. └─vctrs::vec_assert(as.vector(x), double()) 19. └─rlang::abort(...) 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: 2 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/jjAnno.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:02.79, 56.25 + 6.18