ices-tools-prod / TAF

Transparent Assessment Framework for Reproducible Research
GNU General Public License v3.0
3 stars 2 forks source link

taf.bootstrap() can fail when using option pkgType="binary" #6

Closed arni-magnusson closed 1 year ago

arni-magnusson commented 1 year ago

When running taf.bootstrap() to install an R package, it failed with the following error message:

> taf.bootstrap()
[07:25:03] Bootstrap procedure running...
Processing SOFTWARE.bib
[07:25:03] * SOFIA
trying URL 'https://api.github.com/repos/sofia-taf/SOFIA/tarball/2.1.1'
downloaded 13 KB

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type",  :
  cannot open the connection
In addition: Warning messages:
1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
2: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type",  :
  cannot open compressed file 'SOFIA_4288301.tar.gz/DESCRIPTION',
  probable reason 'No such file or directory'
>

It turns out this is related to an option I was using in my Windows .Rprofile:

options(pkgType="binary")

This option is probably not very useful for anything, but if a TAF user has this option, it will cause taf.bootstrap() to fail.

I will fix this issue with a merge to the TAF 'main' branch, but wanted to document this first with an issue.