Skip to content

Commit

Permalink
Update classify_suitability_predictors.R
Browse files Browse the repository at this point in the history
  • Loading branch information
dindiarto committed Aug 6, 2024
1 parent 8871d10 commit 34fed8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/classify_suitability_predictors.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ classify_suitability_predictors <- function(raster_input, suitability_data) {
filter(name_parameter %in% names(raster_input))

if (suitability_data[["name_parameter"]][1] == "soil_texture") {
if (file.exists(system.file("extdata/lookup_tables/lookup_texture_usda.csv", package = "ALSA"))) {
if (file.exists(system.file("extdata/lookup_tables/lookup_texture_usda.csv", package = "LaSEM"))) {
texture_lookup <- readr::read_csv(
system.file(
"extdata/lookup_tables/lookup_texture_usda.csv",
package = "ALSA"
package = "LaSEM"
)
) |> select(texture_kemtan, TEXTURE_USDA)

Expand Down

0 comments on commit 34fed8c

Please sign in to comment.