saveRDS_: saveRDS and return .data

Description Usage Arguments Value Examples

View source: R/helper.r

Description

This function returns the object passed in, can be used for dplyr pipeline.

Usage

1
saveRDS_(.data, file, ...)

Arguments

.data

object to be saved

file

filename to save

...

for saveRDS

Value

whatever object passed in.

Examples

1
2
3
4
data <- data.frame(a=1, b=2, c=3)
data %>%
    saveRDS_(file.path(tempdir(), "data.rds")) %>%
    print()

gen5helper documentation built on March 26, 2020, 7:17 p.m.