connectscape/Makurhini

Error: package or namespace load failed for 'Makurhini' in namespaceExport(ns, exports)

Closed this issue · 2 comments

Hello, I have used this package for a while and really appreciate it. But today I encountered an installation failure for both of my windows computers. It seems to be related to the latest commit.

Restarting R session...

> library(devtools)
载入需要的程辑包:usethis
> library(remotes)

载入程辑包:‘remotes’

The following objects are masked from ‘package:devtools’:

    dev_package_deps, install_bioc, install_bitbucket, install_cran, install_deps, install_dev, install_git,
    install_github, install_gitlab, install_local, install_svn, install_url, install_version, update_packages

The following object is masked from ‘package:usethis’:

    git_credentials

> install_github("connectscape/Makurhini", dependencies = TRUE, upgrade = "never")
Downloading GitHub repo connectscape/Makurhini@HEAD
√  checking for file 'C:\Users\vauvau\AppData\Local\Temp\RtmpmelufE\remotes48e07f5c4c1a\connectscape-Makurhini-4f9a7c8/DESCRIPTION' ... 
-  preparing 'Makurhini': (480ms)
√  checking DESCRIPTION meta-information ... 
   Warning in parse(con, encoding = "UTF-8") :
     argument encoding="UTF-8" is ignored in MBCS locales
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'Makurhini_2.0.3.tar.gz'
   
* installing *source* package 'Makurhini' ...
** using staged installation
Warning in parse(con, encoding = "UTF-8") :
  argument encoding="UTF-8" is ignored in MBCS locales
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'Makurhini'
    finding HTML links ... done
    EXTraster                               html  
    EstConefor                              html  
    MK_BCentrality                          html  
    MK_Connect_grid                         html  
    MK_ProtConn                             html  
    MK_ProtConnMult                         html  
    MK_ProtConn_raster                      html  
    MK_RMCentrality                         html  
    MK_dECA                                 html  
    MK_dECA_grid                            html  
    MK_dPCIIC                               html  
    MK_fragmentation                        html  
    PIntercsect                             html  
    ProtConnStat                            html  
    Protconn_nodes                          html  
    Protected_areas                         html  
    Protected_areas_raster                  html  
    TopoClean                               html  
    close_multiprocess                      html  
    cost_distances                          html  
    dECAfun                                 html  
    dECAfun2                                html  
    delta_ProtConn                          html  
    delta_ProtConn_raster                   html  
    distancefile                            html  
    div                                     html  
    euclidean_distances                     html  
    get_grid                                html  
    get_pc_grid                             html  
    get_protconn_grid                       html  
    input_grid                              html  
    list_forest_patches                     html  
    make_grid                               html  
    merge_conefor                           html  
    metric_class                            html  
    moveme                                  html  
    mult                                    html  
    nodesfile                               html  
    num_vert                                html  
    over_poly                               html  
    plotprotconn                            html  
    pol_dissolve                            html  
    probability_distance                    html  
    protconn_dist                           html  
    rast_clump_points                       html  
    raster_vegetation_patches               html  
    regions                                 html  
    st_centroid_within_poly                 html  
    study_area                              html  
    test_metric_distance                    html  
    unit_convert                            html  
    vegetation_patches                      html  
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'Makurhini' in namespaceExport(ns, exports):
 出口不存在 (Export doesn't exit):MK_ProtConn_raster
错误 (Error): loading failed
停止执行 (Excution stops)
ERROR: loading failed
* removing 'D:/Program Files/R/R-4.1.1/library/Makurhini'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/vauvau/AppData/Local/Temp/RtmpmelufE/file48e05bae1092/Makurhini_2.0.3.tar.gz’ had non-zero exit status
> 

Hi, thanks for your comments!!, Yes, it was related to the last commit. Please try again. You may need to update the Rcpp, sf packages and have the terra package installed. Soon there will be another update to incorporate functions that will estimate ProtConn metrics using raster input.

Thank you very much for the update. It works nice : )