Commit bb5b7d9e authored by Romulo Pereira Goncalves's avatar Romulo Pereira Goncalves
Browse files

We can't remove it otherwise we have object of type closure is not subsettable...

We can't remove it otherwise we have object of type closure is not subsettable when running in parallel.
parent 827798ea
......@@ -119,7 +119,6 @@ sample_nb <- function(raster,
points_list[[k]] <- res[["k" = k]][["points"]]
models_list[[k]] <- res[["k" = k]][["models"]]
oobe[, k] <- res[["k" = k]][["oobe"]][, 1]
remove(res)
}
} else {
for (k in 1:nb_mean) {
......@@ -144,7 +143,6 @@ sample_nb <- function(raster,
points_list[[k]] <- res$points
models_list[[k]] <- res$models
oobe[, k] <- res$oobe[, 1]
remove(res)
setTxtProgressBar(pb, k)
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment