readRDS.gz: Read RDS w/ pigz support

View source: R/pigzRDS.R

readRDS.gzR Documentation

Read RDS w/ pigz support

Description

This function uses pigz to read RDS files. pigz is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data.

Usage

readRDS.gz(file, threads = (parallel::detectCores()) - 1)

Arguments

file

A location to read from.

threads

Number of threads to use. Defaults to parallel::detectCores()-1.

Details

pigz needs to be installed for this function to work.

Value

The object at file.

Examples

## Not run: 
temp <- readRDS.gz('temp.RDS')

## End(Not run)

Kudusch/ktools documentation built on Oct. 30, 2022, 10:13 p.m.