Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error using capsule::create - Error: callr subprocess failed: group length is 0 but data length > 0 #9

Open
njtierney opened this issue Jun 9, 2021 · 4 comments

Comments

@njtierney
Copy link
Contributor

capsule::create(here::here("packages.R"))
#> Error: callr subprocess failed: group length is 0 but data length > 0

Created on 2021-06-09 by the reprex package (v2.0.0)

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.1.0 (2021-05-18)
#>  os       macOS Big Sur 10.16         
#>  system   x86_64, darwin17.0          
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_AU.UTF-8                 
#>  ctype    en_AU.UTF-8                 
#>  tz       Australia/Perth             
#>  date     2021-06-09                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version    date       lib source                              
#>  backports     1.2.1      2020-12-09 [1] CRAN (R 4.1.0)                      
#>  callr         3.7.0      2021-04-20 [1] CRAN (R 4.1.0)                      
#>  capsule       0.1.1.9000 2021-06-09 [1] Github (MilesMcBain/capsule@e27771d)
#>  cli           2.5.0      2021-04-26 [1] CRAN (R 4.1.0)                      
#>  crayon        1.4.1      2021-02-08 [1] CRAN (R 4.1.0)                      
#>  digest        0.6.27     2020-10-24 [1] CRAN (R 4.1.0)                      
#>  ellipsis      0.3.2      2021-04-29 [1] CRAN (R 4.1.0)                      
#>  evaluate      0.14       2019-05-28 [1] CRAN (R 4.1.0)                      
#>  fansi         0.5.0      2021-05-25 [1] CRAN (R 4.1.0)                      
#>  fs            1.5.0      2020-07-31 [1] CRAN (R 4.1.0)                      
#>  glue          1.4.2      2020-08-27 [1] CRAN (R 4.1.0)                      
#>  highr         0.9        2021-04-16 [1] CRAN (R 4.1.0)                      
#>  htmltools     0.5.1.1    2021-01-22 [1] CRAN (R 4.1.0)                      
#>  knitr         1.33       2021-04-24 [1] CRAN (R 4.1.0)                      
#>  lifecycle     1.0.0      2021-02-15 [1] CRAN (R 4.1.0)                      
#>  magrittr      2.0.1      2020-11-17 [1] CRAN (R 4.1.0)                      
#>  pillar        1.6.1      2021-05-16 [1] CRAN (R 4.1.0)                      
#>  pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.1.0)                      
#>  processx      3.5.2      2021-04-30 [1] CRAN (R 4.1.0)                      
#>  ps            1.6.0      2021-02-28 [1] CRAN (R 4.1.0)                      
#>  purrr         0.3.4      2020-04-17 [1] CRAN (R 4.1.0)                      
#>  R6            2.5.0      2020-10-28 [1] CRAN (R 4.1.0)                      
#>  reprex        2.0.0      2021-04-02 [1] CRAN (R 4.1.0)                      
#>  rlang         0.4.11     2021-04-30 [1] CRAN (R 4.1.0)                      
#>  rmarkdown     2.8        2021-05-07 [1] CRAN (R 4.1.0)                      
#>  sessioninfo   1.1.1      2018-11-05 [1] CRAN (R 4.1.0)                      
#>  stringi       1.6.2      2021-05-17 [1] CRAN (R 4.1.0)                      
#>  stringr       1.4.0      2019-02-10 [1] CRAN (R 4.1.0)                      
#>  styler        1.4.1      2021-03-30 [1] CRAN (R 4.1.0)                      
#>  tibble        3.1.2      2021-05-16 [1] CRAN (R 4.1.0)                      
#>  utf8          1.2.1      2021-03-12 [1] CRAN (R 4.1.0)                      
#>  vctrs         0.3.8      2021-04-29 [1] CRAN (R 4.1.0)                      
#>  withr         2.4.2      2021-04-18 [1] CRAN (R 4.1.0)                      
#>  xfun          0.23       2021-05-15 [1] CRAN (R 4.1.0)                      
#>  yaml          2.2.1      2020-02-01 [1] CRAN (R 4.1.0)                      
#> 
#> [1] /Library/Frameworks/R.framework/Versions/4.1/Resources/library

I get this when trying to run this on https://github.com/njtierney/njtcv, if that helps

@MilesMcBain
Copy link
Owner

Thanks it seems that renv is doing something new and weird.

This is failing: renv::init(bare = TRUE)

@MilesMcBain
Copy link
Owner

MilesMcBain commented Jun 9, 2021

Phew okay got it

A couple of things are going wrong, but from your perspective it's due to renv choking while parsing this function:

embolden_name <- function(string,
                          name = "Nicholas J. Tierney"){
  str_replace_all(string = string,
                  pattern = name,
                  replacement = glue::glue("\\\\textbf{<name>}",
                                           .open = "<",
                                           .close = ">"))
}

I think all the escapes are freaking it out somehow.

@MilesMcBain
Copy link
Owner

Looks like it's been fixed in renv already, can you please update and confirm it's working? 🙏

@njtierney
Copy link
Contributor Author

Yup that fixed it! 🚀

Perhaps capsule needs to depend on the latest/dev version of renv now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants