- using R version 4.6.1 RC (2026-06-18 r90186)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.3.0-1) 15.3.0
GNU Fortran (Debian 15.3.0-1) 15.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-06-24 16:08:45 UTC
- checking for file ‘muttest/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘muttest’ version ‘0.2.0’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘muttest’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [0s/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 ... [5s/7s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [10s/30s] ERROR
Running ‘testthat.R’ [9s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(muttest)
Attaching package: 'muttest'
The following object is masked from 'package:testthat':
default_reporter
>
> test_check("muttest")
Saving _problems/test-mutator-return-8.R
Saving _problems/test-mutator-return-13.R
Saving _problems/test-mutator-return-22.R
Saving _problems/test-mutator-return-31.R
Saving _problems/test-mutator-return-37.R
Saving _problems/test-mutator-return-46.R
Saving _problems/test-mutator-return-53.R
Saving _problems/test-mutator-return-58.R
Saving _problems/test-mutator-return-87.R
Saving _problems/test-mutator-return-92.R
Saving _problems/test-mutator-return-103.R
Saving _problems/test-mutator-return-108.R
Saving _problems/test-mutator-return-117.R
Saving _problems/test-mutator-return-122.R
[ FAIL 14 | WARN 0 | SKIP 13 | PASS 220 ]
══ Skipped tests (13) ══════════════════════════════════════════════════════════
• On CRAN (6): 'test-muttest.R:9:3', 'test-muttest.R:51:5',
'test-parallel.R:2:3', 'test-test_reporter-progress.R:1:1',
'test-test_reporter-progress.R:17:1', 'test-test_reporter-progress.R:33:1'
• TODO: Currently matches on !!!. (2): 'test-mutator-condition.R:137:5',
'test-mutator-unary.R:55:5'
• TODO: Currently matches on !!. (2): 'test-mutator-condition.R:133:5',
'test-mutator-unary.R:51:5'
• TODO: Implement implicit return mutation. (2): 'test-mutator-return.R:64:5',
'test-mutator-return.R:70:5'
• covr::in_covr() is not TRUE (1): 'test-acceptance.R:2:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-mutator-return.R:4:5'): replace_return_value default (NULL) / should replace the return value with NULL ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(NULL)"))) at test-mutator-return.R:4:5
2. └─mutator$mutate(input) at ./setup-expect.R:2:3
3. └─muttest:::mutate_code(code, self)
4. └─treesitter::query(language, mutator$query)
5. └─treesitter:::query_error(pointer, source)
6. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:13:5'): replace_return_value default (NULL) / should not mutate return(NULL) when replacement is NULL ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_no_mutations(mutator, c("return(NULL)")) at test-mutator-return.R:13:5
2. ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─mutator$mutate(input)
6. └─muttest:::mutate_code(code, self)
7. └─treesitter::query(language, mutator$query)
8. └─treesitter:::query_error(pointer, source)
9. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:18:5'): replace_return_value default (NULL) / should replace a complex return expression ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_mutates_to(mutator, c("return(x + 1)"), list(c("return(NULL)"))) at test-mutator-return.R:18:5
2. └─mutator$mutate(input) at ./setup-expect.R:2:3
3. └─muttest:::mutate_code(code, self)
4. └─treesitter::query(language, mutator$query)
5. └─treesitter:::query_error(pointer, source)
6. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:27:5'): replace_return_value default (NULL) / should replace a nested call return expression ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_mutates_to(...) at test-mutator-return.R:27:5
2. └─mutator$mutate(input) at ./setup-expect.R:2:3
3. └─muttest:::mutate_code(code, self)
4. └─treesitter::query(language, mutator$query)
5. └─treesitter:::query_error(pointer, source)
6. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:37:5'): replace_return_value default (NULL) / should generate one mutation per return call ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─mutator$mutate(code) at test-mutator-return.R:37:5
2. └─muttest:::mutate_code(code, self)
3. └─treesitter::query(language, mutator$query)
4. └─treesitter:::query_error(pointer, source)
5. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:46:5'): replace_return_value default (NULL) / should work across multiple lines ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─mutator$mutate(code) at test-mutator-return.R:46:5
2. └─muttest:::mutate_code(code, self)
3. └─treesitter::query(language, mutator$query)
4. └─treesitter:::query_error(pointer, source)
5. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:53:5'): replace_return_value default (NULL) / should return NULL when no return() calls are present ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_no_mutations(mutator, c("x + 1")) at test-mutator-return.R:53:5
2. ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─mutator$mutate(input)
6. └─muttest:::mutate_code(code, self)
7. └─treesitter::query(language, mutator$query)
8. └─treesitter:::query_error(pointer, source)
9. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:58:5'): replace_return_value default (NULL) / should not match return() with no argument ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_no_mutations(mutator, c("return()")) at test-mutator-return.R:58:5
2. ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─mutator$mutate(input)
6. └─muttest:::mutate_code(code, self)
7. └─treesitter::query(language, mutator$query)
8. └─treesitter:::query_error(pointer, source)
9. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:83:5'): replace_return_value with NA replacement / should replace the return value with NA ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(NA)"))) at test-mutator-return.R:83:5
2. └─mutator$mutate(input) at ./setup-expect.R:2:3
3. └─muttest:::mutate_code(code, self)
4. └─treesitter::query(language, mutator$query)
5. └─treesitter:::query_error(pointer, source)
6. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:92:5'): replace_return_value with NA replacement / should not mutate return(NA) when replacement is NA ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_no_mutations(mutator, c("return(NA)")) at test-mutator-return.R:92:5
2. ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─mutator$mutate(input)
6. └─muttest:::mutate_code(code, self)
7. └─treesitter::query(language, mutator$query)
8. └─treesitter:::query_error(pointer, source)
9. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:99:5'): replace_return_value with string replacements / should insert the string "NULL" when replacement is '"NULL"' ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(\"NULL\")"))) at test-mutator-return.R:99:5
2. └─mutator$mutate(input) at ./setup-expect.R:2:3
3. └─muttest:::mutate_code(code, self)
4. └─treesitter::query(language, mutator$query)
5. └─treesitter:::query_error(pointer, source)
6. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:108:5'): replace_return_value with string replacements / should not mutate return("NULL") when replacement is '"NULL"' ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_no_mutations(mutator, c("return(\"NULL\")")) at test-mutator-return.R:108:5
2. ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─mutator$mutate(input)
6. └─muttest:::mutate_code(code, self)
7. └─treesitter::query(language, mutator$query)
8. └─treesitter:::query_error(pointer, source)
9. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:113:5'): replace_return_value with string replacements / should insert the string "NA" when replacement is '"NA"' ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(\"NA\")"))) at test-mutator-return.R:113:5
2. └─mutator$mutate(input) at ./setup-expect.R:2:3
3. └─muttest:::mutate_code(code, self)
4. └─treesitter::query(language, mutator$query)
5. └─treesitter:::query_error(pointer, source)
6. └─rlang::abort(message, call = call)
── Error ('test-mutator-return.R:122:5'): replace_return_value with string replacements / should not mutate return("NA") when replacement is '"NA"' ──
Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
i Node type error at offset 18 in `source`.
```
(call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
```
Backtrace:
▆
1. └─muttest:::expect_no_mutations(mutator, c("return(\"NA\")")) at test-mutator-return.R:122:5
2. ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
3. │ └─testthat::quasi_label(enquo(object), label)
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─mutator$mutate(input)
6. └─muttest:::mutate_code(code, self)
7. └─treesitter::query(language, mutator$query)
8. └─treesitter:::query_error(pointer, source)
9. └─rlang::abort(message, call = call)
[ FAIL 14 | WARN 0 | SKIP 13 | PASS 220 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [11s/62s] OK
- checking PDF version of manual ... [7s/10s] OK
- checking HTML version of manual ... [4s/6s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR