You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.