Skip to content

Commit

Permalink
update load function
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoVilela committed Sep 30, 2024
1 parent 61fd739 commit e64dfb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/lets_save_load.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ lets.save <- function(pam, ...) {
lets.load <- function(file) {
e <- base::new.env()
name_file <- load(file, envir = e)
pam <- base::get(name_file)
pam <- base::get(name_file, envir = e)
pam$Richness_Raster <- terra::unwrap(pam$Richness_Raster)
return(pam)
}

0 comments on commit e64dfb5

Please sign in to comment.