Save given variable in package data directory

Description

File will be named var_name.RData with an optional suffix before .RData

Usage

1
save_in_data_dir(var_name, suffix = "")

Arguments

var_name

character or symbol, e.g. "myvar" or myvar, either of which would find myvar in the parent environment, and save it as myvar.RData in package_root/data.

suffix

character scalar

Value

invisibly returns the data

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.