save_obj_with_checksum: Save object with checksum

save_obj_with_checksumR Documentation

Save object with checksum

Description

Save the object to disk with its checksum slot set.

Usage

save_obj_with_checksum(obj_with_UUID_and_checksum, base_outdir_for_checksum)

Arguments

obj_with_UUID_and_checksum

object whose checksum is to be computed

base_outdir_for_checksum

directory where temporary file for use in checksum computation will be written and then deleted

Details

Note that there may be a way to compress these files when they're saved, but I don't quite understand from the saveRDS() help file whether you have to do the compression by calling gzfile() or some argument to saveRDS(). It may be worth looking into more if these objects get large because of the adjacency matrix, since the examples in the help file for readRDS() look like readRDS() can directly restore an R object that's been saved using saveRDS() and then had gzip() applied to it.

Value

Returns input object with its checksum slot filled


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.