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

Package not available for R version 4.1: package 'threadr' is not available for this version of R #8

Closed
kamaulindhardt opened this issue Aug 26, 2021 · 1 comment

Comments

@kamaulindhardt
Copy link

Error in str_replace(., "\\..$", "") : 
  could not find function "str_replace"
Calls: <Anonymous> ... tbl_vars_dispatch -> rename_at -> vars_select_syms -> set_names -> .fn
In addition: Warning messages:
1: package 'threadr' is not available for this version of R

Error in loadNamespace(x) : there is no package called ‘threadr’

I got this error after trying to install the threadr package. Any developmental versions of the package I could install instead?

For your info:

> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.4

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

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

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

other attached packages:
 [1] stringr_1.4.0       ERAg_0.0.1.0000     ranger_0.13.1      
 [4] spatialsample_0.1.0 visdat_0.5.3        vip_0.3.2          
 [7] finetune_0.1.0      stacks_0.2.1        yardstick_0.0.8    
[10] workflowsets_0.1.0  workflows_0.2.3     tune_0.1.6         
[13] tidyr_1.1.3         tibble_3.1.4        rsample_0.1.0      
[16] recipes_0.1.16      purrr_0.3.4         parsnip_0.1.7      
[19] modeldata_0.1.1     infer_1.0.0         dplyr_1.0.7        
[22] dials_0.0.9         scales_1.1.1        broom_0.7.9        
[25] tidymodels_0.1.3    Boruta_7.0.0        patchwork_1.1.1    
[28] superheat_0.1.0     gstat_2.0-7         DataExplorer_0.8.2 
[31] ggfortify_0.4.12    ggbeeswarm_0.6.0    rcompanion_2.4.1   
[34] report_0.3.5        ggridges_0.5.3      GGally_2.1.2       
[37] corrr_0.4.3         ruler_0.2.4         RColorBrewer_1.1-2 
[40] see_0.6.7           hablar_0.3.0        skimr_2.1.3        
[43] dotwhisker_0.7.3    ggplot2_3.3.5       broom.mixed_0.2.7  
[46] readr_2.0.1         pillar_1.6.2        treemap_2.4-3      
[49] lme4_1.1-27.1       Matrix_1.3-4        ggExtra_0.9        
[52] DT_0.18             kableExtra_1.3.4    data.table_1.14.0  
[55] knitr_1.33          pacman_0.5.1        cowplot_1.1.1      
[58] here_1.0.1         

loaded via a namespace (and not attached):
  [1] spam_2.7-0           coin_1.4-1           nortest_1.0-4       
  [4] remotes_2.4.0        lattice_0.20-44      spatstat.utils_2.2-0
  [7] expm_0.999-6         vctrs_0.3.8          stats4_4.1.1        
 [10] utf8_1.2.2           withr_2.4.2          foreign_0.8-81      
 [13] lhs_1.1.1            lifecycle_1.0.0      matrixStats_0.60.1  
 [16] rgeos_0.5-5          munsell_0.5.0        codetools_0.2-18    
 [19] lmtest_0.9-38        furrr_0.2.3          magick_2.7.3        
 [22] parallelly_1.27.0    fs_1.5.0             stringi_1.7.3       
 [25] grid_4.1.1           polyclip_1.10-0      sandwich_3.0-1      
 [28] cluster_2.1.2        pkgconfig_2.0.3      prettyunits_1.1.1   
 [31] lubridate_1.7.10     httr_1.4.2           GPfit_1.0-8         
 [34] igraph_1.2.6         circular_0.4-93      modeltools_0.2-23   
 [37] haven_2.4.3          parameters_0.14.0    htmltools_0.5.2     
 [40] miniUI_0.1.1.1       viridisLite_0.4.0    usethis_2.0.1       
 [43] yaml_2.2.1           prodlim_2019.11.13   hexbin_1.28.2       
 [46] jquerylib_0.1.4      later_1.3.0          glue_1.4.2          
 [49] DBI_1.1.1            plyr_1.8.6           foreach_1.5.1       
 [52] dotCall64_1.0-1      gtable_0.3.0         latticeExtra_0.6-29 
 [55] fastmap_1.1.0        checkmate_2.0.0      promises_1.2.0.1    
 [58] webshot_0.5.2        FNN_1.1.3            distill_1.2         
 [61] hms_1.1.0            png_0.1-7            DescTools_0.99.42   
 [64] Formula_1.2-4        crayon_1.4.1         downlit_0.2.1       
 [67] gridBase_0.4-7       svglite_2.0.0        boot_1.3-28         
 [70] tidyselect_1.1.1     xfun_0.25            performance_0.7.3   
 [73] splines_4.1.1        spacetime_1.2-5      survival_3.2-13     
 [76] rootSolve_1.8.2.2    networkD3_0.4        jpeg_0.1-9          
 [79] fields_12.5          ggsignif_0.6.2       htmlTable_2.2.1     
 [82] xtable_1.8-4         cachem_1.0.6         ipred_0.9-11        
 [85] systemfonts_1.0.2    mime_0.11            gld_2.6.2           
 [88] processx_3.5.2       insight_0.14.3       numDeriv_2016.8-1.1 
 [91] tools_4.1.1          cli_3.0.1            magrittr_2.0.1      
 [94] proxy_0.4-26         rworldxtra_1.01      libcoin_1.0-8       
 [97] ggstance_0.3.5       repr_1.1.3           lmerTest_3.1-3      
[100] s2_1.0.6             effectsize_0.4.5     multcomp_1.4-17     
[103] zip_2.2.0            bayestestR_0.10.5    devtools_2.4.2      
[106] tzdb_0.1.2           ps_1.6.0             lmom_2.8            
[109] maptools_1.1-1       fansi_0.5.0          xts_0.12.1          
[112] TH.data_1.0-10       KernSmooth_2.23-20   backports_1.2.1     
[115] farver_2.1.0         openxlsx_4.2.4       shiny_1.6.0         
[118] hardhat_0.1.6        sass_0.4.0           maps_3.3.0          
[121] rsconnect_0.8.24     pROC_1.17.0.1        viridis_0.6.1       
[124] rstudioapi_0.13      minqa_1.2.4          iterators_1.0.13    
[127] spatstat.geom_2.2-2  intervals_0.15.2     nlme_3.1-152        
[130] beeswarm_0.4.0       bslib_0.2.5.1        sf_1.0-2            
[133] listenv_0.8.0        generics_0.1.0       colorspace_2.0-2    
[136] base64enc_0.1-3      pkgbuild_1.2.0       e1071_1.7-8         
[139] spatstat.data_2.1-0  sp_1.4-5             timeDate_3043.102   
[142] evaluate_0.14        memoise_2.0.0        coda_0.19-4         
[145] vipor_0.4.5          httpuv_1.6.2         class_7.3-19        
[148] Rcpp_1.0.7           BiocManager_1.30.16  classInt_0.4-3      
[151] pkgload_1.2.1        jsonlite_1.7.2       Hmisc_4.5-0         
[154] digest_0.6.27        rprojroot_2.0.2      rmarkdown_2.10      
[157] butcher_0.1.5        globals_0.14.0       compiler_4.1.1      
[160] nnet_7.3-16          zoo_1.8-9            testthat_3.0.4      
[163] keyholder_0.1.5      rlang_0.4.11         nloptr_1.2.2.2      
[166] wk_0.5.0             sessioninfo_1.1.1    lava_1.6.9          
[169] multcompView_0.1-8   rvest_1.0.1          future_1.22.1       
[172] mvtnorm_1.1-2        htmlwidgets_1.5.3    labeling_0.4.2      
[175] forcats_0.5.1        callr_3.7.0          datawizard_0.2.0    
[178] curl_4.3.2           parallel_4.1.1       rworldmap_1.3-6     
[181] highr_0.9            desc_1.3.0           deldir_0.2-10       
[184] gridExtra_2.3        Exact_2.1            diagis_0.1.5        
[187] DiceDesign_1.9       MASS_7.3-54          ellipsis_0.3.2      
[190] xml2_1.3.2           gower_0.2.2          reshape_0.8.8       
[193] rpart_4.1-15         R6_2.5.1             units_0.7-2   
@skgrange
Copy link
Owner

skgrange commented Aug 26, 2021

Hello,
It looks like you have a rather odd error there. I would recommend restarting your R session and reinstalling threadr again. You may need to install stringr again too if you are having issues finding the str_replace function. Because you are running the R 4.1.1, a rather recent version, I suspect the upgrade has not been applied perfectly.

# Install stringr
install.packages("stringr")

# Install threadr
remotes::install_github("skgrange/threadr")

I hope this solves your issue!
Stuart.

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

2 participants