Devtools: install_local fails with package file

Created on 6 Nov 2016  路  4Comments  路  Source: r-lib/devtools

install_local fails to install a local package file (.tar.gz) with the devtools-1.12.0.9000 and git2r-0.15.0.9000.

Here is a failing minimal example that downloads lazyeval and tries to install it:

td <- tempdir()
local_file <- file.path( td, "lazyeval_0.2.0.tar.gz" )
download.file( "https://cran.r-project.org/src/contrib/lazyeval_0.2.0.tar.gz", local_file )
install_local( local_file )

The error is;

Error in value[3L] : argument "quiet" is missing, with no default
In addition: Warning message:
In read.dcf(path) :
cannot open compressed file '/tmp/RtmpId4Wn0/lazyeval_0.2.0.tar.gz/DESCRIPTION', probable reason 'Not a directory'

Cursory examination seems to indicate that the package file is not being extracted before checking for the DESCRIPTION file. Has the untar step been skipped?

bug install

Most helpful comment

I encountered the same thing. The install_url works though:

 install_url("file:///path/to/testthat_1.0.2.tar.gz")

All 4 comments

I just encountered the same problem:

> devtools::install_local("/home/foo/Downloads/bar_0.1.1.tar.gz")
Error in read.dcf(path) : cannot open the connection
In addition: Warning message:
In read.dcf(path) :
  cannot open compressed file '/home/foo/Downloads/bar_0.1.1.tar.gz/DESCRIPTION', probable reason 'Not a directory'
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

I encountered the same thing. The install_url works though:

 install_url("file:///path/to/testthat_1.0.2.tar.gz")

Duplicate of #1346

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sckott picture sckott  路  7Comments

leonidb picture leonidb  路  5Comments

shirdekel picture shirdekel  路  5Comments

bastistician picture bastistician  路  6Comments

mkhezr picture mkhezr  路  5Comments