Skip to content

tibble 3.2.1.9017: some errors in running vignette code #1575

Open
@barracuda156

Description

@barracuda156

Tests pass fine, but I get some errors in running vignette code:

--->  Testing R-tibble
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-tibble/R-tibble/work/tibble-3.2.1.9017" && /opt/local/bin/R CMD check ./tibble_3.2.1.9017.tar.gz --no-manual --no-build-vignettes 
* using log directory ‘/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-tibble/R-tibble/work/tibble-3.2.1.9017/tibble.Rcheck’
* using R version 4.3.3 (2024-02-29)
* using platform: powerpc-apple-darwin10.0.0d2 (32-bit)
* R was compiled by
    gcc-mp-13 (MacPorts gcc13 13.2.0_4+stdlib_flag) 13.2.0
    GNU Fortran (MacPorts gcc12 12.3.0_3+stdlib_flag) 12.3.0
* running under: OS X Snow Leopard 10.6
* using session charset: UTF-8
* using options ‘--no-manual --no-build-vignettes’
* checking for file ‘tibble/DESCRIPTION’ ... OK
* this is package ‘tibble’ version ‘3.2.1.9017’
* 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 ‘tibble’ can be installed ... OK
* used C compiler: ‘gcc-mp-13 (MacPorts gcc13 13.2.0_4+stdlib_flag) 13.2.0’
* used SDK: ‘NA’‘NA’‘NA’‘NA’‘NA’‘NA’
* 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 R 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 startup messages can be suppressed ... 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 ... OK
* checking Rd files ... 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 line endings in C/C++/Fortran sources/headers ... OK
* checking use of PKG_*FLAGS in Makefiles ... OK
* checking compiled code ... OK
* checking files in ‘vignettes’ ... WARNING
Files in the 'vignettes' directory but no files in 'inst/doc':
  ‘digits.Rmd’ ‘extending.Rmd’ ‘formats.Rmd’ ‘formats.mmd’
  ‘invariants.Rmd’ ‘numbers.Rmd’ ‘r4ds.mmd’ ‘tibble.Rmd’ ‘timing.rds’
  ‘types.Rmd’ ‘wip/alignment.png’ ‘wip/subassign.Rmd’ ‘wip/subset.Rmd’
* checking examples ... OK
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘testthat.R’
 OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... WARNING
Directory 'inst/doc' does not exist.
Package vignettes without corresponding single PDF/HTML:
  ‘digits.Rmd’
  ‘extending.Rmd’
  ‘formats.Rmd’
  ‘invariants.Rmd’
  ‘numbers.Rmd’
  ‘tibble.Rmd’
  ‘types.Rmd’
* checking running R code from vignettes ...
  ‘digits.Rmd’ using ‘UTF-8’... OK
  ‘extending.Rmd’ using ‘UTF-8’... OK
  ‘formats.Rmd’ using ‘UTF-8’... failed
  ‘invariants.Rmd’ using ‘UTF-8’... failed
  ‘numbers.Rmd’ using ‘UTF-8’... failed
  ‘tibble.Rmd’ using ‘UTF-8’... failed
  ‘types.Rmd’ using ‘UTF-8’... OK
 ERROR
Errors in running code in vignettes:
when running code in ‘formats.Rmd’
  ...
+     geom_line()

> text <- paste(readLines(here::here("vignettes/r4ds.mmd")), 
+     collapse = "\n")
Warning in file(con, "r") :
  cannot open file '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-tibble/R-tibble/work/.tmp/RtmpWFaepO/file9e5d770ffd96/vignettes/vignettes/r4ds.mmd': No such file or directory

  When sourcing ‘formats.R’:
Error: cannot open the connection
Execution halted
when running code in ‘invariants.Rmd’
  ...
[1]  1 NA  3 NA

> df[[1:2]]
[1] NA

> df[[c("n", "c")]]

  When sourcing ‘invariants.R’:
Error: subscript out of bounds
Execution halted
when running code in ‘numbers.Rmd’
  ...
> x <- num(c(1, 2, 4), notation = "eng")

> var(x)
[1] 2.333333

> median(x)

  When sourcing ‘numbers.R’:
Error: `median.pillar_num()` not implemented.
Execution halted
when running code in ‘tibble.Rmd’
  ...
3     3     1

> tibble(a = 1:3, c = 1:2)

  When sourcing ‘tibble.R’:
Error: Tibble columns must have compatible sizes.
• Size 3: Existing data.
• Size 2: Column `c`.
ℹ Only values of size one are recycled.
Execution halted

* checking re-building of vignette outputs ... SKIPPED
* DONE

Status: 1 ERROR, 2 WARNINGs
See
  ‘/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-tibble/R-tibble/work/tibble-3.2.1.9017/tibble.Rcheck/00check.log’
for details.

Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-tibble/R-tibble/work/tibble-3.2.1.9017" && /opt/local/bin/R CMD check ./tibble_3.2.1.9017.tar.gz --no-manual --no-build-vignettes 
Exit code: 1

Could this be addressed? tibble is a foundational package, it would be great to have it working without issues, however minor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions