save_all_objects: Save All Objects to RDS Files

Description Usage Arguments Details Value Examples

View source: R/save-all-objects.R

Description

Iterate over objects available in the designated environment and create a RDS object for each separate object.

Usage

1
2
3
4
5
6
7
save_all_objects(
  env = parent.frame(n = 1),
  output_path = tempdir(),
  append_timestamps = TRUE,
  skip_functions = TRUE,
  ...
)

Arguments

env

Environment to search for objects. Defaults to parent_frame(n = 1).

output_path

Defaults to tempdir.

append_timestamps

A boolean, defaults to TRUE will append timestamps to each object name.

skip_functions

Defaults to TRUE, removes functions from objects returned by ls.

...

As in saveRDS.

Details

This a convenience function iterates over objects available within the designated environment and creates a RDS file for each single item. The files can have automatically dates added to them.

Value

A character vector of absolute file paths

Examples

1
2

konradedgar/KEmisc documentation built on April 15, 2021, 1:50 p.m.