- 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 'mark/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'mark' version '0.8.2'
- 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 'mark' can be installed ... OK
See the install log for details.
- 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] 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 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 ... [21s] 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 examples ... [1s] ERROR
Running examples in 'mark-Ex.R' failed
The error most likely occurred in:
> ### Name: clipboard
> ### Title: Write to and read from the clipboard
> ### Aliases: clipboard write_clipboard write_clipboard.default
> ### write_clipboard.data.frame write_clipboard.matrix
> ### write_clipboard.list read_clipboard read_clipboard_methods
>
> ### ** Examples
>
> # Will only run on windows
> if (Sys.info()[["sysname"]] == "Windows") {
+ foo <- function(x) {
+ write_clipboard(x)
+ y <- read_clipboard()
+ res <- all.equal(x, y)
+ if (isTRUE(res)) return("All equal")
+ print(x)
+ print(y)
+ }
+ foo(1:4)
+ foo(seq(-1, 1, .02))
+ foo(Sys.Date() + 1:4)
+
+ # May have some rounding issues
+ x <- "0.316362437326461129"
+ write_clipboard(x)
+ res <- as.character(read_clipboard())
+ all.equal(x, res)
+ x; res
+ }
Warning in utils::readClipboard(format = format) :
unpaired surrogate Unicode point dd46
Warning in utils::readClipboard(format = format) :
unpaired surrogate Unicode point df1c
Warning in utils::readClipboard(format = format) :
unpaired surrogate Unicode point dfee
Warning in utils::readClipboard(format = format) :
unpaired surrogate Unicode point df02
Warning in utils::readClipboard(format = format) :
unpaired surrogate Unicode point df9f
Error in sub(re, "", x, perl = TRUE) : input string 5 is invalid UTF-8
Calls: foo ... trimws -> mysub -> sub -> is.factor -> mysub -> sub
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [23s] OK
Running 'spelling.R' [0s]
Running 'testthat.R' [22s]
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [19s] OK
- DONE
Status: 1 ERROR