* using log directory 'd:/Rcompile/CRANpkg/local/4.7/tourr.Rcheck' * using R Under development (unstable) (2026-06-04 r90104 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-06-05 21:55:45 UTC * checking for file 'tourr/DESCRIPTION' ... OK * this is package 'tourr' version '1.2.7' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'tourr' can be installed ... 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking use of S3 registration ... 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 ... [8s] OK * checking Rd files ... [2s] 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 ... [0s] 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 ... [28s] ERROR Running examples in 'tourr-Ex.R' failed The error most likely occurred in: > ### Name: path_dist > ### Title: Compute distance matrix from bases. > ### Aliases: path_dist > > ### ** Examples > > # This code is to be used as an example but you should increase > # the max from 2 to 50, say, to check tour coverage. > flea_std <- apply(flea[,1:6], 2, function(x) (x-mean(x))/sd(x)) > grand <- interpolate(save_history(flea_std, max = 2), 0.2) > # The grand tour ----------------------------- > # Look at the tour path in a tour, how well does it cover a sphere > # Using MDS to summarise the high-d space of projections > # Last basis is a duplicate, needs removing > d <- path_dist(grand[,,-dim(grand)[[3]]]) > ord <- as.data.frame(MASS::isoMDS(d)$points) initial value 0.005709 final value 0.003478 converged > require(ggplot2) Loading required package: ggplot2 > ggplot(data = ord, aes(x=V1, y=V2)) + + geom_path() + + coord_equal() + + labs(x = NULL, y = NULL) > > # Compare five guided tours ----------------------------- > holes1d <- guided_tour(holes(), 1) > tour_reps <- replicate(5, save_history(flea_std, holes1d, max = 2), + simplify = FALSE + ) Target: 0.684, 32.6% better Target: 1.202, 80.6% better Target: 0.922, 23.3% better Target: 1.383, 65.4% better Target: 0.646, 36.3% better > tour_reps2 <- lapply(tour_reps, interpolate, 0.2) > > bases <- unlist(lapply(tour_reps2, as.list), recursive = FALSE) > class(bases) <- "history_list" > index_values <- paths_index(tour_reps2, holes()) Error in unclass(x)[i, j, k, drop = FALSE] : incorrect number of dimensions Calls: paths_index ... structure -> apply -> array -> [ -> [.history_array Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [13s] OK Running 'testthat.R' [13s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [10s] OK * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [24s] OK * DONE Status: 1 ERROR