Quickly save and load (large) objects

Tiago Maié

2025-11-28

CimpleG to save and load large files in R

Loading the package

We load the CimpleG package.

Saving an object

By default we use the ‘zstd’ algorithm but you can choose a different one. The process is pretty seamless. Let’s create a large matrix and save it using CimpleG.

Loading an object

To load an object the process is just as seamless. You do not need to specify which compression algorithm was used. It should just work!

The larger the file the greater the advantage will be when using these functions.

mirror server hosted at Truenetwork, Russian Federation.