saveSpatRasterList: Save List containing SpatRaster objects ( package terra)

View source: R/saveSpatRasterList.R

saveSpatRasterListR Documentation

Save List containing SpatRaster objects ( package terra)

Description

Save List containing SpatRaster objects ( package terra)

Usage

saveSpatRasterList(
  myList,
  filePath = "filepath to save list file to ending in qs"
)

Arguments

myList

a list object that may contain SpatRasters

filePath

file path to save the list object to ( as a package qs file with extention qs)

Details

Allows saving and reloading of a list from and R session that contains SpatRasters the function recursively searches for SpatRaster objects and coverts them to "PackedSpatRaster" using terra::wrap() A work around to allow saving of sessions of R containing SpatRasters that can be reloaded ( saving the SpatRaster itself results in a null pointer error)


nevilamos/FAMEFMR documentation built on April 17, 2025, 9:32 p.m.