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

Submodules seems to be erroring #234

Closed
muschellij2 opened this issue Nov 3, 2018 · 2 comments
Closed

Submodules seems to be erroring #234

muschellij2 opened this issue Nov 3, 2018 · 2 comments

Comments

@muschellij2
Copy link
Contributor

May be related to #233, but I'm getting errors for submodules it seems:

remotes::install_github("ANTsX/ANTsR")
#> Downloading GitHub repo ANTsX/ANTsR@master
#> Error in info[!to_ignore, ]: incorrect number of dimensions
> traceback()
# 5: update_submodules(source, quiet)
# 4: FUN(X[[i]], ...)
# 3: vapply(remotes, install_remote, ..., FUN.VALUE = character(1))
# 2: install_remotes(remotes, auth_token = auth_token, host = host, 
#        dependencies = dependencies, upgrade = upgrade, force = force, 
#        quiet = quiet, build = build, build_opts = build_opts, repos = repos, 
#        type = type, ...)
# 1: remotes::install_github("ANTsX/ANTsR")
sessioninfo::session_info()
#> ─ Session info ──────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 3.5.1 (2018-07-02)
#>  os       macOS Sierra 10.12.6        
#>  system   x86_64, darwin15.6.0        
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_US.UTF-8                 
#>  ctype    en_US.UTF-8                 
#>  tz       America/New_York            
#>  date     2018-11-03                  
#> 
#> ─ Packages ──────────────────────────────────────────────────────────────
#>  package     * version date       lib source                      
#>  assertthat    0.2.0   2017-04-11 [1] CRAN (R 3.5.0)              
#>  backports     1.1.2   2017-12-13 [1] CRAN (R 3.5.0)              
#>  cli           1.0.1   2018-09-25 [1] CRAN (R 3.5.0)              
#>  crayon        1.3.4   2017-09-16 [1] CRAN (R 3.5.0)              
#>  curl          3.2     2018-03-28 [1] CRAN (R 3.5.0)              
#>  digest        0.6.18  2018-10-10 [1] CRAN (R 3.5.0)              
#>  evaluate      0.12    2018-10-09 [1] CRAN (R 3.5.0)              
#>  htmltools     0.3.6   2017-04-28 [1] CRAN (R 3.5.0)              
#>  knitr         1.20    2018-09-21 [1] Github (yihui/knitr@0da648b)
#>  magrittr      1.5     2014-11-22 [1] CRAN (R 3.5.0)              
#>  Rcpp          0.12.19 2018-10-01 [1] CRAN (R 3.5.1)              
#>  remotes       2.0.2   2018-10-30 [1] CRAN (R 3.5.1)              
#>  rmarkdown     1.10    2018-06-11 [1] CRAN (R 3.5.0)              
#>  rprojroot     1.3-2   2018-01-03 [1] CRAN (R 3.5.0)              
#>  sessioninfo   1.1.0   2018-09-25 [1] CRAN (R 3.5.0)              
#>  stringi       1.2.4   2018-07-20 [1] CRAN (R 3.5.0)              
#>  stringr       1.3.1   2018-05-10 [1] CRAN (R 3.5.0)              
#>  withr         2.1.2   2018-03-15 [1] CRAN (R 3.5.0)              
#>  yaml          2.2.0   2018-07-25 [1] CRAN (R 3.5.0)              
#> 
#> [1] /Library/Frameworks/R.framework/Versions/3.5/Resources/library

Created on 2018-11-03 by the reprex package (v0.2.1)

muschellij2 added a commit to muschellij2/remotes that referenced this issue Nov 3, 2018
@muschellij2
Copy link
Contributor Author

This error occurs when .gitmodules exists but is empty.

@muschellij2
Copy link
Contributor Author

Easier example:

tdir = tempfile()
dir.create(tdir)
files = c(".gitmodules", ".Rbuildignore")
files = file.path(tdir, files)
file.create(files)
#> [1] TRUE TRUE
remotes:::update_submodules(source = tdir, quiet = TRUE)
#> Error in info[!to_ignore, ]: incorrect number of dimensions
sessioninfo::session_info()
#> ─ Session info ──────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 3.5.1 (2018-07-02)
#>  os       macOS Sierra 10.12.6        
#>  system   x86_64, darwin15.6.0        
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_US.UTF-8                 
#>  ctype    en_US.UTF-8                 
#>  tz       America/New_York            
#>  date     2018-11-06                  
#> 
#> ─ Packages ──────────────────────────────────────────────────────────────
#>  package     * version date       lib source                      
#>  assertthat    0.2.0   2017-04-11 [1] CRAN (R 3.5.0)              
#>  backports     1.1.2   2017-12-13 [1] CRAN (R 3.5.0)              
#>  cli           1.0.1   2018-09-25 [1] CRAN (R 3.5.0)              
#>  crayon        1.3.4   2017-09-16 [1] CRAN (R 3.5.0)              
#>  digest        0.6.18  2018-10-10 [1] CRAN (R 3.5.0)              
#>  evaluate      0.12    2018-10-09 [1] CRAN (R 3.5.0)              
#>  htmltools     0.3.6   2017-04-28 [1] CRAN (R 3.5.0)              
#>  knitr         1.20    2018-09-21 [1] Github (yihui/knitr@0da648b)
#>  magrittr      1.5     2014-11-22 [1] CRAN (R 3.5.0)              
#>  Rcpp          0.12.19 2018-10-01 [1] CRAN (R 3.5.1)              
#>  remotes       2.0.2   2018-10-30 [1] CRAN (R 3.5.0)              
#>  rmarkdown     1.10    2018-06-11 [1] CRAN (R 3.5.0)              
#>  rprojroot     1.3-2   2018-01-03 [1] CRAN (R 3.5.0)              
#>  sessioninfo   1.1.0   2018-09-25 [1] CRAN (R 3.5.0)              
#>  stringi       1.2.4   2018-07-20 [1] CRAN (R 3.5.0)              
#>  stringr       1.3.1   2018-05-10 [1] CRAN (R 3.5.0)              
#>  withr         2.1.2   2018-03-15 [1] CRAN (R 3.5.0)              
#>  yaml          2.2.0   2018-07-25 [1] CRAN (R 3.5.0)              
#> 
#> [1] /Library/Frameworks/R.framework/Versions/3.5/Resources/library

Created on 2018-11-06 by the reprex package (v0.2.1)

jimhester pushed a commit to muschellij2/remotes that referenced this issue Jun 7, 2019
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

1 participant