deleting objects from sim environment

12 views
Skip to first unread message

Steve Cumming

unread,
Oct 20, 2016, 1:53:17 PM10/20/16
to SpaDES Users
Sometimes, large objects like rasters are loaded, processed, and then no longer needed. To save memory, I'd like to delete them once the module has done with them.
I tried 

rm(largeRaster,envir=sim)

but that does not work. Suggestions?

Eliot McIntire

unread,
Oct 20, 2016, 1:54:54 PM10/20/16
to spades...@googlegroups.com
rm(largeRaster,envir=envir(sim))

The sim is not an environment; it is a simList. To get the environment of the simList where all the objects are stored, use the envir( ) accessor.
Reply all
Reply to author
Forward
0 new messages