- using R Under development (unstable) (2025-12-15 r89175)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-9) 15.2.0
GNU Fortran (Debian 15.2.0-9) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘aka/DESCRIPTION’ ... OK
- this is package ‘aka’ version ‘0.2.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- 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 ‘aka’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking whether startup messages can be suppressed ... [0s/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 ... [2s/4s] OK
- checking Rd files ... [0s/0s] 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 ... [0s/0s] ERROR
Running examples in ‘aka-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: alias
> ### Title: Create an alias for an expression
> ### Aliases: alias :=
>
> ### ** Examples
>
> x = 'hello'
> alias(ax = x) # same as: ax := x
> ax # prints 'hello'
[1] "hello"
>
> x = 'world'
> ax # prints 'world'
[1] "world"
>
> ax = 'goodbye'
> x # prints 'goodbye'
[1] "goodbye"
>
> # Aliases can be created for complex expressions:
> mercedes := mtcars[grepl('^Merc ', rownames(mtcars)), ]
> mercedes
mpg cyl disp hp drat wt qsec vs am gear carb
Merc 240D 24.4 4 146.7 62 3.69 3.19 20.0 1 0 4 2
Merc 230 22.8 4 140.8 95 3.92 3.15 22.9 1 0 4 2
Merc 280 19.2 6 167.6 123 3.92 3.44 18.3 1 0 4 4
Merc 280C 17.8 6 167.6 123 3.92 3.44 18.9 1 0 4 4
Merc 450SE 16.4 8 275.8 180 3.07 4.07 17.4 0 0 3 3
Merc 450SL 17.3 8 275.8 180 3.07 3.73 17.6 0 0 3 3
Merc 450SLC 15.2 8 275.8 180 3.07 3.78 18.0 0 0 3 3
>
> mercedes$vs = 0 # set all Mercedes engine types to V-shaped
Error in mercedes$vs = 0 :
cannot change value of locked binding for '*tmp*'
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [1s/2s] ERROR
Running ‘testthat.r’ [1s/1s]
Running the tests in ‘tests/testthat.r’ failed.
Complete output:
> testthat::test_check(Sys.getenv('_R_CHECK_PACKAGE_NAME_'))
Loading required package: aka
Attaching package: 'aka'
The following object is masked from 'package:stats':
alias
Saving _problems/test-alias-55.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 28 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-alias.r:55:3'): alias to complex expression can be updated ─────
Error in `ax[1L] = 3L`: cannot change value of locked binding for '*tmp*'
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 28 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [3s/5s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs