Learn R Programming

SpaDES (version 1.0.1)

saveFiles: Save simulation objects according to params

Description

If there is a list entry with .saveObjects as a character string vector of object names to save, then these objects will be saved with a call to saveFiles. The file names will be equal to the object name plus time(sim) is appended at the end. The files are saved as .rds files, meaning, only one object gets saved per file.

Usage

saveFiles(sim)

Arguments

sim
A simList simulation object.

Examples

Run this code
sim <- saveFiles(mySim)

Run the code above in your browser using DataLab