From seth at userprimary.net  Wed Nov  4 07:26:44 2009
From: seth at userprimary.net (Seth Falcon)
Date: Tue, 03 Nov 2009 22:26:44 -0800
Subject: [Rd] parse_Rd and/or lazyload problem
In-Reply-To: <62C82B39B8A85E4B95A18F7F7B852F8705559AE070@exvic-mbx03.nexus.csiro.au>
References: <62C82B39B8A85E4B95A18F7F7B852F87055595B001@exvic-mbx03.nexus.csiro.au>,
	<4AEB61C4.4050300@stats.uwo.ca>	<62C82B39B8A85E4B95A18F7F7B852F87055595B002@exvic-mbx03.nexus.csiro.au>,
	<4AEC4954.9070400@stats.uwo.ca>	<62C82B39B8A85E4B95A18F7F7B852F87055595B003@exvic-mbx03.nexus.csiro.au>,
	<4AED9648.7080702@stats.uwo.ca>	<62C82B39B8A85E4B95A18F7F7B852F87055595B005@exvic-mbx03.nexus.csiro.au>	<4AEDEF70.5030004@stats.uwo.ca>
	<62C82B39B8A85E4B95A18F7F7B852F8705559AE070@exvic-mbx03.nexus.csiro.au>
Message-ID: <4AF11EA4.7090705@userprimary.net>

Hi,

On 11/3/09 6:51 PM, Mark.Bravington at csiro.au wrote:
>
> file.copy( 'd:/temp/Rdiff.Rd', 'd:/temp/scrunge.Rd') # Rdiff.Rd from 'tools' package source
>
> eglist<- list( scrunge=parse_Rd(  'd:/temp/scrunge.Rd'))
> tools:::makeLazyLoadDB( eglist, 'd:/temp/ll')
> e<- new.env()
> lazyLoad( 'd:/temp/ll', e)
> as.list( e) # force; OK
>
> eglist1<- list( scrunge=parse_Rd(  'd:/temp/Rdiff.Rd'))
> tools:::makeLazyLoadDB( eglist1, 'd:/temp/ll')
> e<- new.env()
> lazyLoad( 'd:/temp/ll', e)
> as.list( e) # Splat
>
> It doesn't make any difference which file I process first; the error comes the second time round.

If I adjust this example in terms of paths and run on OS X, I get the 
following error on the second run:

 > as.list(e) # Splat
Error in as.list.environment(e) : internal error -3 in R_decompress1

I haven't looked further yet.

+ seth



[Rd] parse_Rd and/or lazyload problem
Seth Falcon