Skip to content

restoptr

Ecological Restoration Planning

v1.1.1 · Jul 2, 2025 · GPL (>= 3)

Description

Flexible framework for ecological restoration planning. It aims to identify priority areas for restoration efforts using optimization algorithms (based on Justeau-Allaire et al. 2021 <doi:10.1111/1365-2664.13803>). Priority areas can be identified by maximizing landscape indices, such as the effective mesh size (Jaeger 2000 <doi:10.1023/A:1008129329289>), or the integral index of connectivity (Pascual-Hortal & Saura 2006 <doi:10.1007/s10980-006-0013-z>). Additionally, constraints can be used to ensure that priority areas exhibit particular characteristics (e.g., ensure that particular places are not selected for restoration, ensure that priority areas form a single contiguous network). Furthermore, multiple near-optimal solutions can be generated to explore multiple options in restoration planning. The package leverages the 'Choco-solver' software to perform optimization using constraint programming (CP) techniques (<https://choco-solver.org/>).

Downloads

801

Last 30 days

4460th

2.3K

Last 90 days

8.2K

Last year

Trend: -0.5% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 6, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 3, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘rJava’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 16, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 16, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [178s/219s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # load packages
  > library(testthat)
  > library(restoptr)
  Loading required package: terra
  terra 1.9.1
  
  Attaching package: 'terra'
  
  The
...[truncated]...
consider increasing the time limit
  
  Backtrace:
      ▆
   1. ├─base::solve(problem) at test_solve.R:117:3
   2. └─restoptr:::solve.RestoptProblem(problem)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 830 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies terra rJava units (>= 0.8-0) assertthat magrittr crayon restoptr

Version History

new 1.1.1 Mar 10, 2026
updated 1.1.1 ← 1.1.0 diff Jul 1, 2025
updated 1.1.0 ← 1.0.6 diff Jun 30, 2025
updated 1.0.6 ← 1.0.5 diff Aug 17, 2023
updated 1.0.5 ← 1.0.4 diff Mar 15, 2023
updated 1.0.4 ← 1.0.3 diff Jan 29, 2023
updated 1.0.3 ← 1.0.2 diff Nov 11, 2022
updated 1.0.2 ← 1.0.1 diff Oct 12, 2022
updated 1.0.1 ← 1.0.0 diff Jun 16, 2022
new 1.0.0 Jun 8, 2022