HenrikBengtsson / listenv

R package: listenv - Environments Behaving As Lists
https://listenv.futureverse.org
30 stars 2 forks source link

R-devel: sprintf() coding mistakes #46

Closed HenrikBengtsson closed 4 years ago

HenrikBengtsson commented 4 years ago
> sprintf_scan_tests()
...
> message("* List environment and multiple dimensions ...")
* List environment and multiple dimensions ...

> x <- listenv()

> dim(x) <- c(0, 0)

> print(x)
SPRINTF WARNING: 'argument not used by format'
- call: sprintf("%s unnamed rows and columns", s, dimstr)
Press ENTER to continue: 

> printf("x = %s.\n", hpaste(x), max_head = 3) # Default
SPRINTF WARNING: 'argument not used by format'
- call: sprintf(...)
Press ENTER to continue: