ncsu-landscape-dynamics / rpops

PoPS (Pest or Pathogen Spread) R Package
https://ncsu-landscape-dynamics.github.io/rpops/
GNU General Public License v3.0
10 stars 5 forks source link

Validate and others give no valid constructor available for the argument list #91

Closed wenzeslaus closed 3 years ago

wenzeslaus commented 3 years ago

When running devtools:test() locally with terra 1.1.13, I get the following error:

Error (test-validate.R:72:5): Validation has correctly formatted returns with multiple output
  comparisons
Error: no valid constructor available for the argument list
Backtrace:
  1. PoPS::validate(...) test-validate.R:72:4
  2. PoPS::configuration(config) /home/vpetras/Projects/pops/rpops/R/validate.R:165:2
  3. PoPS::initial_raster_checks(config$infected_file) /home/vpetras/Projects/pops/rpops/R/configuration.R:130:4
  5. terra::rast(x)
  6. terra:::.local(x, ...)
  7. SpatRaster$new(f, subds - 1, "", FALSE, 0[])
  8. methods::new(def, ...)
 10. methods::initialize(value, ...)
 11. .Object$initialize(...)
 12. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
 13. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
> packageVersion("terra")
[1] ‘1.1.13’

However, I don't see the in the CI.

ChrisJones687 commented 3 years ago

Validate now requires version 1.17 of the terra package which is only available through install_github. I will add this to the installation instructions.

wenzeslaus commented 3 years ago

I may have some confusion in the installed packages, so this might be a local issue.