Skip to content

Commit

Permalink
Fix #3 and update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-justeau committed May 21, 2024
1 parent ecbb8fa commit fa30872
Show file tree
Hide file tree
Showing 106 changed files with 212 additions and 178 deletions.
1 change: 0 additions & 1 deletion .github/workflows/R-CMD-check-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
remotes::install_cran("rcmdcheck")
remotes::install_cran("covr")
options("install.packages.compile.from.source" = NULL)
install.packages("raster", type = "source")
shell: Rscript {0}

- name: Session information
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rflsgen
Type: Package
Title: Neutral Landscape Generator with Targets on Landscape Indices
Version: 1.2.1
Version: 1.2.2
Author: Dimitri Justeau-Allaire, Grégoire Blanchard, Thomas Ibanez, Xavier Lorca, Ghislain Vieilledent, Philippe Birnbaum
Maintainer: Dimitri Justeau-Allaire <[email protected]>
Description: Interface to the 'flsgen' neutral landscape generator <https://github.com/dimitri-justeau/flsgen>. It allows to
Expand All @@ -15,7 +15,7 @@ Depends:
rJava,
terra (>= 1.5-12),
jsonlite
Imports: rgdal, checkmate, utils
Imports: checkmate, utils
SystemRequirements: Java (>= 8)
RoxygenNote: 7.2.2
Suggests: testthat (>= 3.0.0), knitr, rmarkdown, landscapemetrics
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# rflsgen 1.2.2

* Fix bug described in https://github.com/dimitri-justeau/rflsgen/issues/3

* Fix vignette 3 (there was still references to the raster package)

# rflsgen 1.2.1

* Fix bug due to "java.parameters" initialization in zzz.R, which did not allow to set custom memory limits
Expand Down
2 changes: 1 addition & 1 deletion R/flsgen_generate.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ flsgen_generate <- function(structure_str, structure_file, terrain_file=NULL,
terrain_raster <- terra::rast(terrain_file)
}
terrain_data <- values(terrain_raster)
.jcall(terrain, "V", "loadFromData", terrain_data, nb_rows, nb_cols)
.jcall(terrain, "V", "loadFromData", .jarray(as.double(as.vector(terrain_data))))
}
if (is.null(min_max_distance)) {
generator <- .jnew("org.flsgen.solver.LandscapeGenerator", struct, as.integer(connectivity), as.integer(min_distance), terrain)
Expand Down
10 changes: 5 additions & 5 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/articles/FAQ.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/articles/Targets.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fa30872

Please sign in to comment.