save_in_data_dir: Save given variable in package data directory

Description Usage Arguments Value

View source: R/save_in_data_dir.R

Description

File is named varname.RData with an optional suffix before .RData

Usage

1
2
save_in_data_dir(var_name, suffix = "", data_path = "data",
  package_dir = getwd(), envir = parent.frame())

Arguments

var_name

character name of variable or its symbol either of which would find myvar in the parent environment, and save it as myvar.RData in package_root/data.

suffix

character scalar

data_path

path to data directory, default is data in current directory.

package_dir

character containing the directory root of the package tree in which to save the data. Default is the current working directory.

envir

environment in which to look for the variable to save

Value

invisibly returns the data



icd documentation built on May 19, 2017, 11:51 p.m.
Search within the icd package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.