prioritizr / prioritizr

Compare 73e98cf ... +0 ... 8dd4040

Coverage Reach
R/problem.R R/planning_unit_solution_status.R R/eval_replacement_importance.R R/marxan_problem.R R/eval_ferrier_importance.R R/add_linear_constraints.R R/parameters.R R/eval_rare_richness_importance.R R/add_neighbor_constraints.R R/add_cbc_solver.R R/solve.R R/add_linear_penalties.R R/add_feature_contiguity_constraints.R R/add_lpsymphony_solver.R R/presolve_check.R R/add_rsymphony_solver.R R/marxan_boundary_data_to_matrix.R R/add_manual_targets.R R/add_boundary_penalties.R R/add_locked_in_constraints.R R/add_locked_out_constraints.R R/add_manual_locked_constraints.R R/add_manual_bounded_constraints.R R/add_connectivity_penalties.R R/compile.R R/eval_connectivity_summary.R R/boundary_matrix.R R/add_contiguity_constraints.R R/zones.R R/eval_target_coverage_summary.R R/internal.R R/add_shuffle_portfolio.R R/intersecting_units.R R/add_max_phylo_end_objective.R R/add_feature_weights.R R/eval_feature_representation_summary.R R/fast_extract.R R/add_max_phylo_div_objective.R R/add_loglinear_targets.R R/connectivity_matrix.R R/add_absolute_targets.R R/proximity_matrix.R R/add_relative_targets.R R/adjacency_matrix.R R/eval_boundary_summary.R R/rij_matrix.R R/write_problem.R R/predefined_optimization_problem.R R/add_min_largest_shortfall_objective.R R/add_cuts_portfolio.R R/add_max_utility_objective.R R/add_min_shortfall_objective.R R/add_max_features_objective.R R/OptimizationProblem-methods.R R/add_max_cover_objective.R R/pproto.R R/simulate.R R/category_vector.R R/loglinear_interpolation.R R/add_mandatory_allocation_constraints.R R/add_semicontinuous_decisions.R R/feature_abundances.R R/distribute_load.R R/eval_cost_summary.R R/eval_n_summary.R R/binary_stack.R R/add_min_set_objective.R R/run_calculations.R R/add_binary_decisions.R R/add_proportion_decisions.R R/category_layer.R R/Id.R R/branch_matrix.R R/misc.R R/number_of_zones.R R/number_of_features.R R/feature_names.R R/zone_names.R R/number_of_planning_units.R R/tbl_df.R R/number_of_total_units.R R/add_default_objective.R R/targets.R R/add_default_decisions.R R/waiver.R R/new_optimization_problem.R R/add_default_portfolio.R src/rcpp_apply_feature_contiguity_constraints.cpp src/rcpp_boundary_data.cpp src/rcpp_ferrier_score.cpp src/rcpp_apply_contiguity_constraints.cpp src/optimization_problem.cpp src/rcpp_apply_boundary_penalties.cpp src/rcpp_apply_max_phylo_objective.cpp src/rcpp_apply_min_largest_shortfall_objective.cpp src/rcpp_apply_connectivity_penalties.cpp src/rcpp_apply_max_cover_objective.cpp src/rcpp_apply_max_utility_objective.cpp src/rcpp_add_rij_data.cpp src/rcpp_apply_max_features_objective.cpp src/rcpp_apply_min_shortfall_objective.cpp src/rcpp_boundary_data.h src/rcpp_apply_neighbor_constraints.cpp src/rcpp_sp_to_polyset.cpp src/rcpp_boundary.cpp src/rcpp_summarize_exactextractr.cpp src/rcpp_branch_matrix.cpp src/rcpp_absolute_amount_held_by_solution.cpp src/optimization_problem.h src/rcpp_apply_min_set_objective.cpp src/rcpp_str_tree_to_sparse_matrix.cpp src/rcpp_list_to_matrix_indices.cpp src/rcpp_apply_linear_penalties.cpp src/functions.cpp src/rcpp_forbid_solution.cpp src/rcpp_connectivity.cpp src/rcpp_add_zones_constraints.cpp src/rcpp_apply_decisions.cpp src/rcpp_add_linear_constraints.cpp src/rcpp_apply_feature_weights.cpp src/rcpp_apply_bounded_constraints.cpp src/rcpp_apply_locked_constraints.cpp src/functions.h src/init.c

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 15 of 79 files from the diff.
Other files ignored by Codecov
docs/pkgdown.yml has changed.
man/solve.Rd has changed.
man/zones.Rd has changed.

@@ -4,7 +4,7 @@
Loading
4 4
#' Category vector
5 5
#'
6 6
#' Convert an object containing binary (`integer`) fields (columns) into a
7 -
#' `integer` `vector` indicating the column index where each row is
7 +
#' `integer` vector indicating the column index where each row is
8 8
#' `1`.
9 9
#'
10 10
#' @param x `matrix`, `data.frame`, [`Spatial-class`],
@@ -15,7 +15,7 @@
Loading
15 15
#'   value of zero. Also, note that in the argument to `x`, each row must
16 16
#'   contain only a single value equal to `1`.
17 17
#'
18 -
#' @return `integer` `vector`
18 +
#' @return `integer` vector.
19 19
#'
20 20
#' @seealso [base::max.col()]
21 21
#'

@@ -14,7 +14,7 @@
Loading
14 14
#' @param budget `numeric` value specifying the maximum expenditure of
15 15
#'   the prioritization. For problems with multiple zones, the argument
16 16
#'   to `budget` can be a single `numeric` value to specify a budget
17 -
#'   for the entire solution or a `numeric` `vector` to specify
17 +
#'   for the entire solution or a `numeric` vector to specify
18 18
#'   a budget for each each management zone.
19 19
#'
20 20
#' @details

@@ -35,11 +35,11 @@
Loading
35 35
#'
36 36
#' \describe{
37 37
#'
38 -
#' \item{`data` as an `integer` `vector`}{containing indices that indicate which
38 +
#' \item{`data` as an `integer` vector}{containing indices that indicate which
39 39
#'   planning units should be locked for the solution. This argument is only
40 40
#'   compatible with problems that contain a single zone.}
41 41
#'
42 -
#' \item{`data` as a `logical` `vector`}{containing `TRUE` and/or
42 +
#' \item{`data` as a `logical` vector}{containing `TRUE` and/or
43 43
#'   `FALSE` values that indicate which planning units should be locked
44 44
#'   in the solution. This argument is only compatible with problems that
45 45
#'   contain a single zone.}
@@ -52,7 +52,7 @@
Loading
52 52
#'   zone. Thus each row should only contain at most a single `TRUE`
53 53
#'   value.}
54 54
#'
55 -
#' \item{`data` as a `character` `vector`}{containing field (column) name(s)
55 +
#' \item{`data` as a `character` vector}{containing field (column) name(s)
56 56
#'   that indicate if planning units should be locked for the solution.
57 57
#'   This format is only
58 58
#'   compatible if the planning units in the argument to `x` are a

@@ -41,7 +41,7 @@
Loading
41 41
#'
42 42
#' \describe{
43 43
#'
44 -
#' \item{`data` as `character` `vector`}{containing field (column) name(s) that
44 +
#' \item{`data` as `character` vector}{containing field (column) name(s) that
45 45
#'   contain penalty values for planning units. This format is only
46 46
#'   compatible if the planning units in the argument to `x` are a
47 47
#'   [`Spatial-class`], [sf::sf()], or
@@ -52,7 +52,7 @@
Loading
52 52
#'   contain multiple zones, the argument to `data` must
53 53
#'   contain a field name for each zone.}
54 54
#'
55 -
#' \item{`data` as a `numeric` `vector`}{containing values for
55 +
#' \item{`data` as a `numeric` vector}{containing values for
56 56
#'   planning units. These values must not contain any missing
57 57
#'   (`NA`) values. Note that this format is only available
58 58
#'   for planning units that contain a single zone.}

@@ -37,7 +37,7 @@
Loading
37 37
#'
38 38
#' \describe{
39 39
#'
40 -
#' \item{`weights` as a `numeric` `vector`}{containing weights for each feature.
40 +
#' \item{`weights` as a `numeric` vector}{containing weights for each feature.
41 41
#'   Note that this format cannot be used to specify weights for problems with
42 42
#'   multiple zones.}
43 43
#'

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R 94.92%
src 98.81%
Project Totals (124 files) 96.11%
Loading