[R] save an object of class "im"

ppaarrkk simon_ecc at yahoo.co.uk
Fri Oct 24 16:36:49 CEST 2008


Thanks for reply. I have worked out what it was. It was the fact that I was
creating the files within functions, doing assign() within the function and
then returning the result. I have changed it so that the image file is
assigned globally within the function and now it can be saved and loaded
properly. Before, I could plot it successfully after it was returned from
the function, but I couldn't properly save and load it. I don't quite know
why this should be the case.




Sarah Goslee wrote:
> 
> How about an example of what you did? It's difficult to provide
> suggestions
> without a workable example of the commands you used.
> 
> Sarah
> 
> On Thu, Oct 23, 2008 at 12:26 PM, ppaarrkk <simon_ecc at yahoo.co.uk> wrote:
>>
>> I have created various "im" objects, but can't seem to save and load
>> them. I
>> can save them, but as small files of less than 1Kb. Therefore, when they
>> are
>> re-loaded, they cannot be plotted as images.
>>
>> Any ideas please.
>>
>> Thankyou.
>>
>> Simon Parker
>> Imperial College
> 
> 
> 
> -- 
> Sarah Goslee
> http://www.functionaldiversity.org
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/save-an-object-of-class-%22im%22-tp20134567p20151376.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list