Skip to content

pkg_code() and pkg_manual() fail for dplyr #98

@EeethB

Description

@EeethB

What I expected

All pkg_ functions should work while testing them out

What went wrong

pkg_code("dplyr") returns NULL, and pkg_manual("dplyr") errors out

> pkg_code("dplyr")
#>  NULL
> pkg_manual("dplyr")
#>  
#>  Attaching package: ‘dplyr’
#>  
#>  The following objects are masked from ‘package:stats’:
#>  
#>      filter, lag
#>  
#>  The following objects are masked from ‘package:base’:
#>  
#>      intersect, setdiff, setequal, union
#>  
#>  Error in bind_cols(tibble(x = 1:3), tibble(y = 1:2)) : 
#>    Can't recycle `..1` (size 3) to match `..2` (size 2).
#>  Error in recode(char_vec, a = "Apple", b = "Banana", .default = NA) : 
#>    `.default` must be a character vector, not `NA`.
#>  Error in case_match(num_vec, 2 ~ "b", 4 ~ "d", .default = num_vec) : 
#>    Can't combine `..1 (right)` <character> and `.default` <integer>.
#>  Error in rename(iris, all_of(lookup)) : ℹ In argument: `all_of(lookup)`.
#>  Caused by error in `all_of()`:
#>  ! Can't subset elements that don't exist.
#>  ✖ Element `unknown` doesn't exist.
#>  Error in rename_with(iris, ~paste0("prefix_", .x), starts_with("nonexistent")) : 
#>    `.fn` must return a vector of length 0, not 1.
#>  Error in rows_insert(data, tibble(a = 3, b = "z")) : 
#>    `y` can't contain keys that already exist in `x`.
#>  ℹ The following rows in `y` have keys that already exist in `x`: `c(1)`.
#>  ℹ Use `conflict = "ignore"` if you want to ignore these `y` rows.
#>  Error in rows_update(data, y, by = "a") : 
#>    `y` must contain keys that already exist in `x`.
#>  ℹ The following rows in `y` have keys that don't exist in `x`: `c(2)`.
#>  ℹ Use `unmatched = "ignore"` if you want to ignore these `y` rows.

Session info

> sessionInfo()
R version 4.5.0 (2025-04-11)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.2 LTS

Matrix products: default
BLAS:   /opt/R/openval/rc_20250900/4.5.0/lib/R/lib/libRblas.so 
LAPACK: /opt/R/openval/rc_20250900/4.5.0/lib/R/lib/libRlapack.so;  LAPACK version 3.12.1

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Etc/UTC
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggplot2_3.5.2 dplyr_1.1.4   litedown_0.7 

loaded via a namespace (and not attached):
 [1] utf8_1.2.5         generics_0.1.4     tidyr_1.3.1        RSQLite_2.3.11     digest_0.6.37     
 [6] magrittr_2.0.3     evaluate_1.0.3     grid_4.5.0         RColorBrewer_1.1-3 fastmap_1.2.0     
[11] blob_1.2.4         backports_1.5.0    brio_1.1.5         DBI_1.2.3          promises_1.3.2    
[16] purrr_1.0.4        scales_1.4.0       codetools_0.2-20   cli_3.6.5          shiny_1.10.0      
[21] rlang_1.1.6        dbplyr_2.5.0       Lahman_12.0-0      bit64_4.6.0-1      withr_3.0.2       
[26] cachem_1.1.0       yaml_2.3.10        diffviewer_0.1.2   tools_4.5.0        memoise_2.0.1     
[31] httpuv_1.6.16      broom_1.0.8        vctrs_0.6.5        R6_2.6.1           mime_0.13         
[36] lifecycle_1.0.4    bit_4.6.0          pkgconfig_2.0.3    pillar_1.10.2      later_1.4.2       
[41] gtable_0.3.6       rsconnect_1.4.0    glue_1.8.0         Rcpp_1.0.14        xfun_0.52         
[46] tibble_3.2.1       tidyselect_1.2.1   dichromat_2.0-0.1  rstudioapi_0.17.1  knitr_1.50        
[51] farver_2.1.2       xtable_1.8-4       htmltools_0.5.8.1  labeling_0.4.3     rmarkdown_2.29    
[56] testthat_3.2.3     compiler_4.5.0  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions