metrumresearchgroup / pkgr

R package installation and management - reimagined.
https://metrumresearchgroup.github.io/pkgr/docs
39 stars 4 forks source link

The presence of Linux Binary customizations prevents pkgr from being able to install on Mac #381

Open Dreznel opened 3 years ago

Dreznel commented 3 years ago

Here is my pkgr.yml file:

Version: 1
Packages:
  - R6
  - ellipsis # depends on rlang
  - digest
  - yaml # suggests RUnit
Repos:
  - MPNBinary: https://mpn.metworx.com/snapshots/stable/2021-05-16 # I had to change this one to something more recent because the repo that has linux binaries doesn't have Mac binaries for R4.0.
  - MPNSource: https://mpn.metworx.com/snapshots/stable/2021-06-20

# this library path is customized for ubuntu linux systems like metworx
# change it if you need to run this on a separate machine type
Library: test-library

Cache: test-cache

Customizations:
  Repos:
    - MPNBinary:
        Type: binary
        RepoType: MPN
        RepoSuffix: metworx/20.06
    - MPNSource:
        Type: source
  Packages:
    - digest:
        Type: source
    - yaml:
        Suggests: true
        Repo: MPNSource

When I run pkgr install with this config, several packages fail to install:

INFO[0000] R Version 4.0.3                              
INFO[0000] Package Library will be created               path=test-library
INFO[0000] Default package installation type:  binary   
INFO[0000] 1130:1130 (binary:source) packages available in for MPNBinary from https://mpn.metworx.com/snapshots/stable/2021-05-16 
INFO[0000] 1133:1134 (binary:source) packages available in for MPNSource from https://mpn.metworx.com/snapshots/stable/2021-06-20 
INFO[0000] Package installation cache directory:  test-cache 
INFO[0000] Database cache directory:  /Users/johncarlos/Library/Caches/pkgr/r_packagedb_caches 
INFO[0000] package installation status                   installed=0 not_from_pkgr=0 outdated=0 total_packages_required=6
INFO[0000] package installation sources                  MPNBinary=5 MPNSource=1 tarballs=0
INFO[0000] package installation plan                     to_install=6 to_update=0
INFO[0000] Library path to install packages: test-library 
INFO[0000] resolution time 26.091759ms                  
INFO[0000] update argument passed. staging packages for update... 
INFO[0000] downloading required packages within directory   dir=/Users/johncarlos/openspace/pkgr/integration_tests/mixed-source/test-cache
INFO[0000] downloading package                           package=ellipsis
INFO[0000] downloading package                           package=R6
INFO[0000] downloading package                           package=digest
INFO[0000] downloading package                           package=yaml
INFO[0000] downloading package                           package=RUnit
INFO[0000] downloading package                           package=rlang
WARN[0000] bad server response                           package=ellipsis status="404 Not Found" status_code=404 url="https://mpn.metworx.com/snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/ellipsis_0.3.2.tgz"
INFO[0000] body:  <html>
<head><title>404 Not Found</title></head>
<body>
<h1>404 Not Found</h1>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/ellipsis_0.3.2.tgz</li>
<li>RequestId: D46PGT2C670S1K1X</li>
<li>HostId: fPKKD7cmiOG4iZ75T4VwLKeH+WbljJgg8sCPV/ohGkENeWZb1Nwe2r6YOoRQBO5qfzbHtMQzoUE=</li>
</ul>
<h3>An Error Occurred While Attempting to Retrieve a Custom Error Document</h3>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: error.html</li>
</ul>
<hr/>
</body>
</html>  package=ellipsis
WARN[0000] bad server response                           package=rlang status="404 Not Found" status_code=404 url="https://mpn.metworx.com/snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/rlang_0.4.11.tgz"
INFO[0000] body:  <html>
<head><title>404 Not Found</title></head>
<body>
<h1>404 Not Found</h1>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/rlang_0.4.11.tgz</li>
<li>RequestId: D46S8VZXG90RBK4Y</li>
<li>HostId: a8r2s+3foTeecqsHZhEpBkdJJH9AhgsZBdyZw3aHogrIElhVhrXotZWdQBr9ji2SJXmm/1cBbWU=</li>
</ul>
<h3>An Error Occurred While Attempting to Retrieve a Custom Error Document</h3>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: error.html</li>
</ul>
<hr/>
</body>
</html>  package=rlang
WARN[0000] bad server response                           package=R6 status="404 Not Found" status_code=404 url="https://mpn.metworx.com/snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/R6_2.5.0.tgz"
INFO[0000] body:  <html>
<head><title>404 Not Found</title></head>
<body>
<h1>404 Not Found</h1>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/R6_2.5.0.tgz</li>
<li>RequestId: D46M2MWHBMPX0448</li>
<li>HostId: iiA1+Sx/K1ukW59/6i+t6ZRwVdIoEsuysKOZ+ueIRhDv/P9A/W1COhd0sSNBFl9SiNX9Yl1lYxE=</li>
</ul>
<h3>An Error Occurred While Attempting to Retrieve a Custom Error Document</h3>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: error.html</li>
</ul>
<hr/>
</body>
</html>  package=R6
WARN[0000] bad server response                           package=RUnit status="404 Not Found" status_code=404 url="https://mpn.metworx.com/snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/RUnit_0.4.32.tgz"
INFO[0000] body:  <html>
<head><title>404 Not Found</title></head>
<body>
<h1>404 Not Found</h1>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: snapshots/stable/2021-05-16/bin/macosx/metworx/20.06/contrib/4.0/RUnit_0.4.32.tgz</li>
<li>RequestId: D46NNVZH6FT4KYET</li>
<li>HostId: KI3gioTKHkt+L34JOhD30/5Typ7oRwkEd5+Q00Lw1Eb7ku5aYvtebvBGqUTxzOmuhOQuaQJs1o4=</li>
</ul>
<h3>An Error Occurred While Attempting to Retrieve a Custom Error Document</h3>
<ul>
<li>Code: NoSuchKey</li>
<li>Message: The specified key does not exist.</li>
<li>Key: error.html</li>
</ul>
<hr/>
</body>
</html>  package=RUnit
INFO[0000] all packages downloaded                       duration=280.453585ms
INFO[0000] starting initial install                     
ERRO[0000] cmd output                                    exit_code=1 output="Warning: invalid package ‘/Users/johncarlos/openspace/pkgr/integration_tests/mixed-source’\nError: ERROR: no packages specified\n" package=R6 stderr="Warning: invalid package ‘/Users/johncarlos/openspace/pkgr/integration_tests/mixed-source’\nError: ERROR: no packages specified\n" stdout=
ERRO[0000] cmd output                                    exit_code=1 output="Warning: invalid package ‘/Users/johncarlos/openspace/pkgr/integration_tests/mixed-source’\nError: ERROR: no packages specified\n" package=rlang stderr="Warning: invalid package ‘/Users/johncarlos/openspace/pkgr/integration_tests/mixed-source’\nError: ERROR: no packages specified\n" stdout=
WARN[0000] error installing                              err="exit status 1"
WARN[0000] error installing                              err="exit status 1"
ERRO[0000] cmd output                                    exit_code=1 output="Warning: invalid package ‘/Users/johncarlos/openspace/pkgr/integration_tests/mixed-source’\nError: ERROR: no packages specified\n" package=RUnit stderr="Warning: invalid package ‘/Users/johncarlos/openspace/pkgr/integration_tests/mixed-source’\nError: ERROR: no packages specified\n" stdout=
WARN[0000] error installing                              err="exit status 1"
INFO[0000] Successfully Installed.                       package=yaml remaining=5 repo=MPNSource version=2.2.1
INFO[0005] Successfully Installed.                       package=digest remaining=4 repo=MPNBinary version=0.6.27
ERRO[0005] did not install ellipsis                     
ERRO[0005] installation failed for packages: R6, rlang, RUnit 
INFO[0005] starting individual tarball install          
INFO[0005] total package install time                    duration=5.130526249s
INFO[0005] duration:5.137299061s                        
ERRO[0005] failed package install with err, failed installation for packages: R6, rlang, RUnit

If I remove just

       RepoType: MPN
        RepoSuffix: metworx/20.06

from the config, then the installation succeeds.

I'm running R4.0.3.