Dear Jean-Baptiste Féret,
The new version of the package works perfectly for me in Windows 10 and R 4.2.2 with parallel processing:
maxRows <- 10000 # nb of lines processed at once (adjust based on RAM available)
total_cores <- detectCores()
nbCPU <- total_cores - 1 # nb of threads for parallel processing
5- apply biodivMapR
divmetrics <- biodivMapR_full(
input_raster_path = trait_files,
input_mask_path = mask_custom_path,
output_dir = output_dir,
window_size = window_size,
Kmeans_info_save = Kmeans_info_save,
Beta_info_save = Beta_info_save,
nbclusters = nbclusters,
alphametrics = c("richness", "shannon", "simpson"),
FDmetric = c("FRic", "FEve", "FDiv", "FDis", "FRaoq"),
maxRows = maxRows, nbCPU = nbCPU,
progressbar = T,
filetype = "GTiff"
)
However, using the same script, the system does not use more than 1 core in a clean install of Windows 11 with the latest R version (or R 4.2.2) and latest package dependencies.
Has someone reported something similar? The same thing happens to a colleague of mine on Windows 11.
Best regards,
Dear Jean-Baptiste Féret,
The new version of the package works perfectly for me in Windows 10 and R 4.2.2 with parallel processing:
maxRows <- 10000 # nb of lines processed at once (adjust based on RAM available)
total_cores <- detectCores()
nbCPU <- total_cores - 1 # nb of threads for parallel processing
5- apply biodivMapR
divmetrics <- biodivMapR_full(
input_raster_path = trait_files,
input_mask_path = mask_custom_path,
output_dir = output_dir,
window_size = window_size,
Kmeans_info_save = Kmeans_info_save,
Beta_info_save = Beta_info_save,
nbclusters = nbclusters,
alphametrics = c("richness", "shannon", "simpson"),
FDmetric = c("FRic", "FEve", "FDiv", "FDis", "FRaoq"),
maxRows = maxRows, nbCPU = nbCPU,
progressbar = T,
filetype = "GTiff"
)
However, using the same script, the system does not use more than 1 core in a clean install of Windows 11 with the latest R version (or R 4.2.2) and latest package dependencies.
Has someone reported something similar? The same thing happens to a colleague of mine on Windows 11.
Best regards,