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

TAR_OPTIONS="-v" breaks install_github() #282

Closed
dseynaev opened this issue Jan 22, 2019 · 1 comment
Closed

TAR_OPTIONS="-v" breaks install_github() #282

dseynaev opened this issue Jan 22, 2019 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@dseynaev
Copy link

This works:

Sys.setenv("TAR_OPTIONS" = "")
remotes::install_github("klutometis/roxygen")

this does not:

Sys.setenv("TAR_OPTIONS" = "-v")
remotes::install_github("klutometis/roxygen")

I get the following output:

klutometis-roxygen-c42a2f0/
klutometis-roxygen-c42a2f0/.Rbuildignore
klutometis-roxygen-c42a2f0/.gitattributes
klutometis-roxygen-c42a2f0/.gitignore
klutometis-roxygen-c42a2f0/.travis.yml
[...]
klutometis-roxygen-c42a2f0/vignettes/roxygen2.Rmd
Error: Does not appear to be an R package (no DESCRIPTION)

I'm on Ubuntu 18.04.1 LTS, R 3.5.1 and remotes 2.0.2.9000

@jimhester jimhester added the bug an unexpected problem or unintended behavior label Apr 3, 2020
@jimhester
Copy link
Member

The issue is that -v does different things in tar's extract and in list modes. In extract mode it prints the files as they are processed, but in list mode it produces output similar to ls.

download.packages("roxygen2", ".")
#>      [,1]       [,2]                     
#> [1,] "roxygen2" "./roxygen2_7.1.1.tar.gz"

Sys.setenv("TAR_OPTIONS" = "-v")
utils::untar(Sys.glob("roxygen2_*"))

Sys.setenv("TAR_OPTIONS" = "-v")
utils::untar(Sys.glob("roxygen2_*"), list = TRUE)
#>   [1] "drwxr-xr-x ligges/users      0 2020-06-27 14:50 roxygen2/"                                                         
#>   [2] "-rw-r--r-- ligges/users   8946 2020-06-26 17:56 roxygen2/NAMESPACE"                                                
#>   [3] "-rw-r--r-- ligges/users   2550 2020-03-10 18:56 roxygen2/README.md"                                                
#>   [4] "drwxr-xr-x ligges/users      0 2020-06-26 17:48 roxygen2/man/"                                                     
#>   [5] "-rw-r--r-- ligges/users   1763 2020-06-26 17:42 roxygen2/man/load_options.Rd"                                      
#>   [6] "-rw-r--r-- ligges/users   1569 2019-09-20 18:39 roxygen2/man/load.Rd"                                              
#>   [7] "-rw-r--r-- ligges/users   1504 2019-10-04 13:20 roxygen2/man/tag_parsers.Rd"                                       
#>   [8] "-rw-r--r-- ligges/users   8022 2020-03-10 18:56 roxygen2/man/RoxyTopic.Rd"                                         
#>   [9] "-rw-r--r-- ligges/users   1733 2019-09-20 18:39 roxygen2/man/update_collate.Rd"                                    
#>  [10] "-rw-r--r-- ligges/users    954 2019-11-05 17:19 roxygen2/man/rd_roclet.Rd"                                         
#>  [11] "-rw-r--r-- ligges/users   1168 2019-11-05 17:19 roxygen2/man/namespace_roclet.Rd"                                  
#>  [12] "-rw-r--r-- ligges/users   1710 2020-06-26 17:36 roxygen2/man/roxy_block.Rd"                                        
#>  [13] "-rw-r--r-- ligges/users   1695 2019-10-04 13:20 roxygen2/man/roxygenize.Rd"                                        
#>  [14] "-rw-r--r-- ligges/users   1639 2020-03-10 19:26 roxygen2/man/roxygen2-package.Rd"                                  
#>  [15] "drwxr-xr-x ligges/users      0 2020-06-26 21:30 roxygen2/man/roxygen/"                                             
#>  [16] "drwxr-xr-x ligges/users      0 2019-10-01 20:26 roxygen2/man/roxygen/templates/"                                   
#>  [17] "-rw-r--r-- ligges/users    222 2019-09-17 16:06 roxygen2/man/roxygen/templates/rd.R"                               
#> ...                                                              
#> [291] "-rw-r--r-- ligges/users  19081 2020-06-26 21:30 roxygen2/inst/doc/roxygen2.html"                                   
#> [292] "-rw-r--r-- ligges/users    977 2020-06-26 21:30 roxygen2/inst/doc/roxygen2.R"                                      
#> [293] "-rw-r--r-- ligges/users  48780 2020-06-26 21:30 roxygen2/inst/doc/rd-formatting.html"                              
#> [294] "-rw-r--r-- ligges/users   4879 2020-06-26 21:30 roxygen2/inst/doc/extending.R"

Created on 2020-07-10 by the reprex package (v0.3.0)

remotes uses untar() in both of these ways, so you cannot use -v as an option with remotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants