r-lib / pak

A fresh approach to package installation
https://pak.r-lib.org
646 stars 57 forks source link

not work in GitHub but work in CRAN #473

Closed TongZhou2017 closed 8 months ago

TongZhou2017 commented 1 year ago

Error by GitHub

pak::pak('TongZhou2017/itol.toolkit')

> Will install 1 package.
> Will download 1 package with unknown size.
+ itol.toolkit   1.1.2 [bld][cmp][dl] (GitHub: 65f9e5a)
i Getting 1 pkg with unknown size
v Cached copy of itol.toolkit 1.1.2 (source) is the latest build
v No downloads needed, all packages are cached                      
i Packaging itol.toolkit 1.1.2
v Packaged itol.toolkit 1.1.2 (2.6s)                                          
i Building itol.toolkit 1.1.2                                                 
x Failed to build itol.toolkit 1.1.2                                          
Error:                                                                        
! error in pak subprocess
Caused by error in `stop_task_build(state, worker)`:
! Failed to build source package 'itol.toolkit'
Full installation output:
* installing *source* package 'itol.toolkit' ...
staged installation is only possible with locking
** using non-staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'itol.toolkit'
    finding HTML links ... done
    complex_html_text                       html  
    convert_01                              html  
    convert_01_to_connect                   html  
    convert_range_to_node                   html  
    correct_get_color                       html  
    count_to_tree                           html  
    create_hub                              html  
    create_theme                            html  
    create_unit                             html  
    df_merge                                html  
    fa_read                                 html  
    fa_write                                html  
    file_get_dir                            html  
    file_get_name                           html  
    file_to_unit          
inbuilt_themes                          html  
    itol.hub-class                          html  
    itol.theme-class                        html  
    itol.unit-class                         html  
    learn_data                              html  
    learn_data_from_file                    html  
    learn_data_from_files                   html  
    learn_data_from_unit                    html  
    learn_data_from_unit_list               html  
    learn_df                                html  
    learn_field                             html  
    learn_legend                            html  
    learn_line                              html  
    learn_profile                           html  
    learn_separator                         html  
    learn_subdf                             html  
    learn_theme_align                       html  
    learn_theme_alignment                   html  
    learn_theme_bar                         html  
    learn_theme_basic_plot                  html  
    learn_theme_basic_theme                 html  
    learn_theme_binary                      html  
    learn_theme_border                      html  
    learn_theme_common_themes               html  
    learn_theme_connection                  html  
    learn_theme_domain                      html  
    learn_theme_externalshape               html  
    learn_theme_heatmap                     html  
    learn_theme_image                       html  
    learn_theme_label                       html  
    learn_theme_linechart                   html  
    learn_theme_piechart                    html  
    learn_theme_specific_themes             html  
    learn_theme_strip_label                 html  
    learn_type                              html  
    line_clean                              html  
    line_split                              html  
    merge_unit                              html  
    plus-methods                            html  
    show-itol.hub-method
template_groups                         html  
    template_parameters_count               html  
    unite_rows                              html  
    use.theme                               html  
    write_hub                               html  
    write_raw                               html  
    write_unit                              html  
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Error: package or namespace load failed for 'itol.toolkit' in library.dynam(lib, package, package.lib):
 没有这个DLL 'lattice':是不是没有为此架构安装?
错误: loading failed
停止执行
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/86139/AppData/Local/Temp/RtmpUH9hoi/pkg-libd008432b5deb/itol.toolkit'
Type .Last.error to see the more details.

But work in CRAN by:

pak::pak('itol.toolkit')
gaborcsardi commented 1 year ago

What version of pak is this? Can you install the latest dev version, as in? https://pak.r-lib.org/reference/install.html#stable-rc-and-devel-streams

Can you tell us more about your system? E.g. send the output of sessionInfo()?

TongZhou2017 commented 1 year ago

What version of pak is this? Can you install the latest dev version, as in? https://pak.r-lib.org/reference/install.html#stable-rc-and-devel-streams

Can you tell us more about your system? E.g. send the output of sessionInfo()?

Thanks for your help. The following is the output of sessionInfo():

R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8  LC_CTYPE=Chinese (Simplified)_China.utf8   
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C                               
[5] LC_TIME=Chinese (Simplified)_China.utf8    

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

other attached packages:
 [1] minpack.lm_1.2-1     Hmisc_4.7-0          Formula_1.2-4        survival_3.2-11      lattice_0.20-44      sna_2.6             
 [7] network_1.17.1       statnet.common_4.5.0 patchwork_1.1.1      tidyfst_0.9.9        phyloseq_1.36.0      forcats_0.5.1       
[13] stringr_1.4.0        dplyr_1.0.10         purrr_0.3.4          readr_1.4.0          tidyr_1.1.3          tibble_3.1.2        
[19] ggplot2_3.4.0        tidyverse_1.3.1      igraph_1.2.6         ggClusterNet_0.1.0  

loaded via a namespace (and not attached):
  [1] utf8_1.2.1             tidyselect_1.1.1       RSQLite_2.2.7          AnnotationDbi_1.54.0   htmlwidgets_1.5.3     
  [6] pROC_1.17.0.1          munsell_0.5.0          codetools_0.2-18       preprocessCore_1.54.0  withr_2.5.0           
 [11] colorspace_2.0-1       fst_0.9.4              Biobase_2.52.0         knitr_1.33             ggalluvial_0.12.3     
 [16] rstudioapi_0.13        ggsignif_0.6.1         labeling_0.4.2         GenomeInfoDbData_1.2.6 polyclip_1.10-0       
 [21] bit64_4.0.5            farver_2.1.0           rhdf5_2.36.0           coda_0.19-4            vctrs_0.5.1           
 [26] generics_0.1.3         ipred_0.9-11           xfun_0.23              fastcluster_1.2.3      R6_2.5.0              
 [31] doParallel_1.0.17      GenomeInfoDb_1.28.0    graphlayouts_0.7.1     bitops_1.0-7           rhdf5filters_1.4.0    
 [36] cachem_1.0.5           assertthat_0.2.1       scales_1.2.1           ggraph_2.0.5           nnet_7.3-16      
gaborcsardi commented 1 year ago

What version of pak is this? Can you install the latest dev version, as in? pak.r-lib.org/reference/install.html#stable-rc-and-devel-streams

gaborcsardi commented 8 months ago

Please reopen with more information if you still have this problem.