- using R Under development (unstable) (2026-11-19 r90936)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)
GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-11-19 06:51:28 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘fuj/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘fuj’ version ‘0.3.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 ‘fuj’ can be installed ... OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking whether startup messages can be suppressed ... 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/15s] OK
- checking Rd files ... 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 examples ... ERROR
Running examples in ‘fuj-Ex.R’ failed
The error most likely occurred in:
> ### Name: struct
> ### Title: Simple structures
> ### Aliases: struct
>
> ### ** Examples
>
> x <- list(a = 1, b = 2)
> # structure() retains the $names attribute of x but struct() does not
> structure(x, class = "data.frame", row.names = 1L)
a b
1 1 2
> struct(x, "data.frame", row.names = 1L)
1 1 2
> struct(x, "data.frame", row.names = 1L, names = names(x))
a b
1 1 2
>
> # structure() corrects entries for "factor" class
> # but struct() demands the data to be an integer
> structure(1, class = "factor", levels = "a")
Error in attributes(.Data) <- c(attributes(.Data), attrib) :
adding class "factor" to an invalid object
Calls: structure
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [17s/58s] ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [16s/56s]
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/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> options(fuj.list.active = TRUE)
> library(testthat)
> library(fuj, mask.ok = list(testthat = "not"))
Attaching package: 'fuj'
The following object is masked from 'package:testthat':
not
>
> test_check("fuj")
Saving _problems/test-struct-33.R
|| 0%
|=======| 10%
|==============| 20%
|=====================| 30%
|============================| 40%
|===================================| 50%
|==========================================| 60%
|=================================================| 70%
|========================================================| 80%
|===============================================================| 90%
|======================================================================| 100%[ FAIL 1 | WARN 0 | SKIP 4 | PASS 277 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• GH_ACTIONS_OS not set (1): 'test-os.R:7:3'
• On CRAN (3): 'test-fs.R:76:1', 'test-namespace.R:86:1', 'test-vap.R:92:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-struct.R:30:3'): struct() works for factors ────────────────────
Error in `attributes(.Data) <- c(attributes(.Data), attrib)`: adding class "factor" to an invalid object
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-struct.R:30:3
2. │ └─testthat::quasi_label(enquo(expected), expected.label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─base::structure(1, class = "factor", levels = c("a", "b"))
[ FAIL 1 | WARN 0 | SKIP 4 | PASS 277 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [5s/17s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs