[R-sig-Geo] raster temporal files
Agustin Lobo
alobolistas at gmail.com
Fri Jan 9 13:37:39 CET 2015
It is relevant, but it is not the problem I'm describing:
I refer to the temporary files that correspond to R raster objects that
have been deleted.
My understanding is that the paragraph you include refers to
raster objects that have not been deleted and are saved between
sessions in the .RData. If you open a new session after the value
tmptime has been exceeded, the actual values for the raster object will
not be there. But this is not the issue I'm referring to now.
What I thought is that deleting a raster object from the workspace implied
deleting the corresponding temporary file from disk. I observe that this
is not the case and would like to know if this is the normal and intentional
behavior.
Agus
On Fri, Jan 9, 2015 at 1:09 PM, Michael Sumner <mdsumner at gmail.com> wrote:
> On Fri Jan 09 2015 at 22:49:53 Agustin Lobo <alobolistas at gmail.com> wrote:
>
>> I'm working with large files and observe that when I remove a raster layer
>> in R, i.e.
>> rm(a)
>>
>> the associated gri and grd files in /tmp/R_raster_alobo still remain.
>> Is this normal or do I have
>> a configuration problem? I thought that the temporal files would be deleted
>> once the corresponding R object was removed.
>>
>>
> It's documented in ?rasterOptions that
>
> For example, to change
> the default directory used to save temporary files, add a line
> like this: ‘options(rasterTmpDir='c:/temp/')’ to that file. All
> temporary raster files in that folder that are older than 24 hrs
> are deleted when the raster package is loaded.
>
> I haven't tested this myself, but clearly that help page is relevant.
>
> Cheers, Mike.
>
>
>
>> Thanks
>>
>> Agus
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list