* using log directory 'd:/Rcompile/CRANpkg/local/4.4/this.path.Rcheck' * using R version 4.4.2 (2024-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'this.path/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'this.path' version '2.5.0' * 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 'this.path' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 13.3.0' * checking installed package size ... 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 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 whether startup messages can be suppressed ... [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 ... [7s] 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 line endings in shell scripts ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking installed files from 'inst/doc' ... OK * checking examples ... [4s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [5s] ERROR Running 'basename2-tests.R' [0s] Running 'ext-tests.R' [0s] Running 'faster-subsequent-times.R' [1s] Running 'isclipboard-tests.R' [0s] Running 'pathjoin-tests.R' [0s] Running 'set-sys-path-tests.R' [1s] Running 'this-path-tests.R' [1s] Running 'zzz.R' [0s] Running the tests in 'tests/set-sys-path-tests.R' failed. Complete output: > local({ + + + FILE.R <- tempfile(fileext = ".R") + on.exit(unlink(FILE.R)) + writeLines(" + test.this.path <- function () + { + try(print(this.path::sys.path(verbose = TRUE))) + try(print(this.path::env.path(verbose = TRUE))) + try(print(this.path::src.path(verbose = TRUE))) + try(print(this.path::this.path(verbose = TRUE))) + } + + + test.this.path()", FILE.R) + + + sourcelike <- function(file) { + ofile <- file + file <- this.path::set.sys.path(file, Function = "sourcelike") + lines <- readLines(file, warn = FALSE) + filename <- this.path::sys.path(local = TRUE, for.msg = TRUE) + isFile <- !is.na(filename) + if (isFile) { + timestamp <- file.info(filename)$mtime[1] + if (is.na(timestamp)) + timestamp <- Sys.time() + } + else { + filename <- if (is.character(ofile)) ofile else "" + timestamp <- Sys.time() + } + srcfile <- srcfilecopy(filename, lines, timestamp, isFile) + this.path::set.src.path(srcfile) + envir <- new.env(hash = TRUE, parent = .BaseNamespaceEnv) + envir$.packageName <- filename + oopt <- options(topLevelEnvironment = envir) + on.exit(options(oopt)) + this.path::set.env.path(envir) + exprs <- parse(text = lines, srcfile = srcfile) + this.path::source.exprs(exprs, evaluated = TRUE, envir) + `.this.path::document.context` + } + + + this.path::source.exprs({ + + + x <- sourcelike(this.path::relpath(FILE.R)) + print(x, quote = FALSE) + + + y <- local({ + FILE.zip <- tempfile(fileext = ".zip") + on.exit(unlink(FILE.zip)) + local({ + owd <- getwd() + on.exit(setwd(owd)) + setwd(this.path::dirname2(FILE.R)) + status <- utils::zip(FILE.zip, this.path::basename2(FILE.R)) + on.exit() + setwd(owd) + if (status == 0L) { + local({ + conn <- unz(this.path::relpath(FILE.zip), this.path::basename2(FILE.R)) + on.exit(close(conn)) + sourcelike(conn) + }) + } + }) + }) + print(y, quote = FALSE) + + + }) + + + }) Error in regexec(" ([ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]:) +(.*?) *(?:Web Client Network|Microsoft Windows Network)?$", : input string 9 is invalid in this locale Calls: local ... eval -> sourcelike -> -> .relpath -> regexec In addition: Warning message: In regexec(" ([ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]:) +(.*?) *(?:Web Client Network|Microsoft Windows Network)?$", : unable to translate 'Der Befehl wurde erfolgreich ausgef<81>hrt.' to a wide string Execution halted * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 1 ERROR