Skip to content

Commit 15ca79b

Browse files
committed
ssdms: small fix
1 parent ec9a81c commit 15ca79b

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/lint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242

4343
- name: Setup R dependencies
4444
uses: r-lib/actions/setup-r-dependencies@v2
45+
46+
- name: Install some R packages
47+
run: |
48+
install.packages(
49+
c("mda", "glmnet", "mda", "ranger", "randomForest"),
50+
Ncpus = 4L)
51+
shell: Rscript {0}
52+
4553
with:
4654
extra-packages: any::lintr
4755
needs: check

R/mod_ssdm_helpers.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,14 +1062,17 @@ prepare_input_data <- function(
10621062
ecokit::save_as(
10631063
object = sp_mod_data_base, out_path = species_data_base_file)
10641064

1065+
out_tibble <- tibble::tibble(
1066+
valid_species = all(sp_mod_data$valid_species),
1067+
species_data = species_data_file,
1068+
species_data_base = species_data_base_file)
1069+
10651070
rm(
10661071
sp_mod_data, model_data, sp_mod_data_base, envir = environment())
10671072
invisible(gc())
10681073

1069-
tibble::tibble(
1070-
valid_species = all(sp_mod_data$valid_species),
1071-
species_data = species_data_file,
1072-
species_data_base = species_data_base_file)
1074+
out_tibble
1075+
10731076
},
10741077
future.scheduling = Inf, future.seed = TRUE,
10751078
future.packages = pkg_to_load, future.globals = future_globals)) %>%

0 commit comments

Comments
 (0)