* using log directory 'd:/Rcompile/CRANpkg/local/4.3/qtl2fst.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'qtl2fst/DESCRIPTION' ... OK * this is package 'qtl2fst' version '0.28' * 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 'qtl2fst' 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [6s] OK * checking Rd files ... [1s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [6s] ERROR Running examples in 'qtl2fst-Ex.R' failed The error most likely occurred in: > ### Name: replace_path > ### Title: Replace the path used in fst_genoprob object > ### Aliases: replace_path > > ### ** Examples > > library(qtl2) > grav2 <- read_cross2(system.file("extdata", "grav2.zip", package="qtl2")) > probs <- calc_genoprob(grav2, error_prob=0.002) > dir <- tempdir() > fprobs <- fst_genoprob(probs, "grav2", dir, overwrite=TRUE) writing D:\temp\2024_11_18_01_50_01_1577\RtmpEjBEWJ/grav2_1.fst writing D:\temp\2024_11_18_01_50_01_1577\RtmpEjBEWJ/grav2_2.fst writing D:\temp\2024_11_18_01_50_01_1577\RtmpEjBEWJ/grav2_3.fst writing D:\temp\2024_11_18_01_50_01_1577\RtmpEjBEWJ/grav2_4.fst writing D:\temp\2024_11_18_01_50_01_1577\RtmpEjBEWJ/grav2_5.fst > > # move the probabilities into a different directory > new_dir <- file.path(tempdir(), "subdir") > if(!dir.exists(new_dir)) dir.create(new_dir) > for(file in fst_files(fprobs)) { + file.rename(file, file.path(new_dir, basename(file))) + } > > # revise the path in fprobs > new_path <- sub(dir, new_dir, fst_path(fprobs)) Warning in sub(dir, new_dir, fst_path(fprobs)) : TRE pattern compilation error 'Invalid back reference' Error in sub(dir, new_dir, fst_path(fprobs)) : invalid regular expression 'D:\temp\2024_11_18_01_50_01_1577\RtmpEjBEWJ', reason 'Invalid back reference' Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [28s] OK Running 'testthat.R' [28s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [5s] OK * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR