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

tune package #391

Closed
Ji-square opened this issue Oct 22, 2024 · 7 comments
Closed

tune package #391

Ji-square opened this issue Oct 22, 2024 · 7 comments

Comments

@Ji-square
Copy link

Error:
! error in pak subprocess
Caused by error in select_next_task(state):
! Cannot select new package installation task.
ℹ 1 package still waiting to install: tune.
ℹ This is an internal error in pkgdepends, please report an issue at

@gaborcsardi
Copy link
Member

Can you show the code you are running and some information about your system and pak installation?

@Ji-square
Copy link
Author

Hello
yes here it is
taylor()
pak::pak(
paste0(
"tidymodels/",
c("tune", "workflows", "rsample", "tailor")
)
)
Yes sure Error:
! error in pak subprocess
Caused by error in select_next_task(state):
! Cannot select new package installation task.
ℹ 1 package still waiting to install: tune.
ℹ This is an internal error in pkgdepends, please report an issue at

Apple M1
darwin-arm64

@gaborcsardi
Copy link
Member

Can you show the full output? Also the output of this?

sessioInfo()
pak::pak_sitrep()

@gaborcsardi
Copy link
Member

Nevertheless, this typically means a circular dependency between some packages, in which case it is impossible to install them.

@Ji-square
Copy link
Author

Ji-square commented Oct 23, 2024

Here it is:

pak::pak(
+   paste0(
+     "tidymodels/",
+     c("tune", "workflows", "rsample", "tailor")
+   )
+ )
                                                                            
→ Will update 1 package.
→ Will download 1 package with unknown size.
+ tune 1.2.1 → 1.2.1.9000 👷🔧 ⬇ (GitHub: bc5422a)

! tune is loaded in the current R session, you probably need to restart R after the installation.

? Do you want to continue (Y/n) Y
ℹ Getting 1 pkg with unknown size
✔ Cached copy of tune 1.2.1.9000 (source) is the latest build
✔ No downloads needed, all packages are cached           
Error:        
! error in pak subprocess
Caused by error in `select_next_task(state)`:
! Cannot select new package installation task.
ℹ 1 package still waiting to install: tune.
ℹ This is an internal error in pkgdepends, please report an issue at
  <https://github.com/r-lib/pkgdepends/issues>.
Type .Last.error to see the more details.

sessioninfo():

> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS Ventura 13.6.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/London
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] taylor_3.1.0         probably_1.0.3.9001  yardstick_1.3.1      workflowsets_1.1.0  
 [5] workflows_1.1.4.9000 tune_1.2.1           tidyr_1.3.1          tibble_3.2.1        
 [9] rsample_1.2.1.9000   recipes_1.1.0        purrr_1.0.2          parsnip_1.2.1.9003  
[13] modeldata_1.4.0      infer_1.0.7          ggplot2_3.5.1        dplyr_1.1.4         
[17] dials_1.3.0          scales_1.3.0         broom_1.0.6          tidymodels_1.2.0    

loaded via a namespace (and not attached):
 [1] gtable_0.3.5        processx_3.8.4      lattice_0.22-6      callr_3.7.6         ps_1.7.7           
 [6] vctrs_0.6.5         tools_4.4.1         pak_0.8.0           generics_0.1.3      parallel_4.4.1     
[11] fansi_1.0.6         pkgconfig_2.0.3     Matrix_1.7-0        data.table_1.16.0   lhs_1.2.0          
[16] GPfit_1.0-8         lifecycle_1.0.4     compiler_4.4.1      munsell_0.5.1       codetools_0.2-20   
[21] DiceDesign_1.10     class_7.3-22        prodlim_2024.06.25  pillar_1.9.0        furrr_0.3.1        
[26] MASS_7.3-60.2       gower_1.0.1         iterators_1.0.14    foreach_1.5.2       rpart_4.1.23       
[31] parallelly_1.38.0   lava_1.8.0          tidyselect_1.2.1    digest_0.6.37       future_1.34.0      
[36] listenv_0.9.1       splines_4.4.1       grid_4.4.1          colorspace_2.1-1    cli_3.6.3          
[41] magrittr_2.0.3      survival_3.6-4      utf8_1.2.4          future.apply_1.11.2 withr_3.0.1        
[46] backports_1.5.0     lubridate_1.9.3     timechange_0.3.0    globals_0.16.3      nnet_7.3-19        
[51] timeDate_4032.109   gridExtra_2.3       hardhat_1.4.0.9002  rlang_1.1.4         Rcpp_1.0.13        
[56] glue_1.8.0          ipred_0.9-15        rstudioapi_0.16.0   R6_2.5.1     
pak::pak_sitrep()
* pak version:
- 0.8.0
* Version information:
- pak platform: aarch64-apple-darwin20 (current: aarch64-apple-darwin20, compatible)
- pak repository: - (local install?)
* Optional packages installed:
- pillar
* Library path:
- /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
* pak is installed at /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/pak.
* Dependency versions:
- callr      3.7.6     
- cli        3.6.2     
- curl       5.2.1     
- desc       1.4.3     
- filelock   1.0.3     
- jsonlite   1.8.8     
- lpSolve    5.6.20    
- pkgbuild   1.4.4     
- pkgcache   2.2.2.9000
- pkgdepends 0.7.2.9000
- pkgsearch  3.1.3     
- processx   3.8.4     
- ps         1.7.6     
- R6         2.5.1     
- zip        2.3.1     
* Dependencies can be loaded

Thanks

@gaborcsardi
Copy link
Member

Yeah, so there is a circular dependency here, so these packages cannot be installed. This is something to fix in tune or probably or tailor, I would think in tailor, since that's the new package:

❯ pak::pkg_deps_explain("tidymodels/tune", c("tune", "workflows", "rsample", "tailor"))
tune -> tailor -> probably -> workflows
tune -> workflows

tune -> rsample

tune -> tailor

x tune

❯ pak::pkg_deps_explain("tidymodels/tailor", c("tune", "workflows", "rsample", "tailor"))
tailor -> probably -> tune

tailor -> probably -> tune -> workflows
tailor -> probably -> workflows

tailor -> probably -> tune -> rsample

x tailor

@simonpcouch
Copy link

This issue should now be resolved!👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants