Assigns a new object by name to the current working environment then saves
the newly assigned object, specified by the "dir"
argument.
assignAndSaveData( name, object, envir = parent.frame(), dir = getOption("acid.save.dir", default = "."), ext = getOption("acid.save.ext", default = "rds"), overwrite = getOption("acid.overwrite", default = TRUE), compress = getOption("acid.save.compress", default = TRUE) )
name |
|
---|---|
object | Object. |
envir |
|
dir |
|
ext |
Supported arguments:
RDS is preferred when saving single objects per file, which is always the
convention of |
overwrite |
|
compress |
|
Invisible named character(1)
.
File path.
This function attempts to follow the same order as
assign()
.
Updated 2019-10-12.
x <- 1L assignAndSaveData( name = "example", object = x, dir = ".", ext = "rds" )#>#> [1] TRUE#> [1] TRUE