pak icon indicating copy to clipboard operation
pak copied to clipboard

`devtools::install_github()` works but `pak::pkg_install()` fails

Open MLopez-Ibanez opened this issue 5 months ago • 3 comments

devtools::install_github("auto-optimization/mootools/r")

works!

pak::pkg_install("auto-optimization/mootools/r")

FAILS with:

→ Will install 1 package.
→ The package (0 B) is cached.
+ moocore   0.0.9000 [bld][cmp] (GitHub: 9b8a0e0) + ✔ make, ✔ libgsl0-dev
ℹ No downloads are needed, 1 pkg is cached
ℹ Packaging moocore 0.0.9000
✖ Failed to create source package moocore 0.0.9000            
                                                              
── Standard output ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Warning: unknown option ‘--no-lock’                           
* checking for file ‘/tmp/RtmpYmD8Z0/X/moocore/auto-optimization-mootools-9b8a0e0/r/DESCRIPTION’ ... OK
* preparing ‘moocore’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* installing the package to process help pages
      -----------------------------------
* installing *source* package ‘moocore’ ...
** using staged installation
checking for gsl-config... /usr/bin/gsl-config
configure: creating ./config.status
config.status: creating src/Makevars
** libs
make: *** No rule to make target 'moocore/hv_contrib.o', needed by 'moocore.so'. Stop.
ERROR: compilation failed for package ‘moocore’
* removing ‘/tmp/Rtmpf6GTUR/Rinstbd574a7fa384/moocore’
      -----------------------------------
ERROR: package installation failed
Error:                                                        
! error in pak subprocess
Caused by error in `stop_task_package_build(state, worker)`:
! Failed to create source package 'moocore' from source tree '/tmp/RtmpYmD8Z0/filebb3548ceb328/src/contrib/moocore_0.0.9000_9b8a0e0.tar.gz-t'
Type .Last.error to see the more details.
``

MLopez-Ibanez avatar Jan 23 '24 14:01 MLopez-Ibanez