Giter Site home page Giter Site logo

Comments (7)

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Hi @BrunoCartu,

Thanks for reaching out! I'll take a look at this and see what I can do.

from prioritizr.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Could you do me a favour and post your session information after loading prioritizr? Specifically, the output from library(prioritizr);sessionInfo()?

from prioritizr.

BrunoCartu avatar BrunoCartu commented on June 3, 2024

Hi @jeffreyhanson, here is my session info:

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C LC_TIME=English_Canada.1252

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

other attached packages:
[1] cluster_2.1.0 vegan_2.6-4 lattice_0.20-41 permute_0.9-7 prioritizr_7.2.2
[6] proto_1.0.0 sf_0.9-6 prioritizrdata_0.2.4 raster_3.5-2 sp_1.4-4

loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 plyr_1.8.6 compiler_4.0.2 pillar_1.4.6 libgeos_3.11.0-2
[6] class_7.3-17 remotes_2.3.0 tools_4.0.2 uuid_1.1-0 nlme_3.1-148
[11] lifecycle_0.2.0 tibble_3.0.3 mgcv_1.8-31 pkgconfig_2.0.3 rlang_0.4.11
[16] Matrix_1.2-18 cli_2.0.2 DBI_1.1.0 rstudioapi_0.11 rgdal_1.5-18
[21] parallel_4.0.2 e1071_1.7-4 terra_1.4-11 exactextractr_0.9.0 dplyr_1.0.2
[26] geos_0.2.1 rgeos_0.5-5 generics_0.0.2 vctrs_0.3.4 classInt_0.4-3
[31] grid_4.0.2 tidyselect_1.1.0 glue_1.4.2 R6_2.4.1 fansi_0.4.1
[36] purrr_0.3.4 magrittr_2.0.3 rcbc_0.1.0.9001 splines_4.0.2 MASS_7.3-51.6
[41] codetools_0.2-16 ellipsis_0.3.1 units_0.6-7 assertthat_0.2.1 fasterize_1.0.3
[46] utf8_1.1.4 KernSmooth_2.23-17 wk_0.7.0 crayon_1.3.4

from prioritizr.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Thanks! Could you please try installing the latest version of Matrix and running the example again? My guess is that you might be using a version of the Matrix package which is too old. Looking at the changelog for the Matrix package and changes to the sparseMatrix function, it seems prioritizr might need Matrix >= 1.3-0.

from prioritizr.

BrunoCartu avatar BrunoCartu commented on June 3, 2024

It works! Sorry, the computation took a lot of time (I ended up setting number_solutions = 10). Thanks @jeffreyhanson :-)

from prioritizr.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Awesome - thanks for letting me know! I'll update the package version dependencies so that people don't run into this issue in the future. Also, if speed is an issue, I'd recommend installing the latest version of R and updating all the dependencies - it seems like some of your packages might be a bit old so updating them might help performance?

from prioritizr.

BrunoCartu avatar BrunoCartu commented on June 3, 2024

Yes, I should indeed, and I will. Cheers.

from prioritizr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.