- 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 'sketchy/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'sketchy' version '1.0.4'
- 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 'sketchy' 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 code 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 ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] 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 ... [4s] 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 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 R/sysdata.rda ... OK
- checking examples ... [2s] ERROR
Running examples in 'sketchy-Ex.R' failed
The error most likely occurred in:
> ### Name: add_to_gitignore
> ### Title: Add entries to gitignore
> ### Aliases: add_to_gitignore
>
> ### ** Examples
>
> {
+ data(compendiums)
+
+ make_compendium(name = "my_compendium", path = tempdir(),
+ format = "basic", force = TRUE)
+
+ # save a file
+ write.csv(iris, file.path(tempdir(), "my_compendium", "iris.csv"))
+
+ # add the file to gitignore
+ add_to_gitignore(add.to.gitignore = TRUE,
+ path = file.path(tempdir(), "my_compendium"), extension = "csv")
+ }
Creating directories ...
my_compendium
│
├── data/
│ ├── processed/ # modified/rearranged data
│ └── raw/ # original data
├── manuscript/ # manuscript/poster figures
├── output/ # all non-data products of data analysis
└── scripts/ # code
Done.
Warning in gsub(path, "", files_found) :
TRE pattern compilation error 'Invalid back reference'
Error in gsub(path, "", files_found) :
invalid regular expression 'D:\temp\2024_12_08_01_50_01_8405\RtmpQTwHeO/my_compendium', reason 'Invalid back reference'
Calls: add_to_gitignore -> gsub
Execution halted
- checking PDF version of manual ... [27s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR