saveBinary: Save R object in binary file.

View source: R/taskFiles.R

saveBinaryR Documentation

Save R object in binary file.

Description

Save R object in binary file.

Usage

saveBinary(
  object,
  task,
  type,
  subdir = NULL,
  dirCreate = TRUE,
  encrypt = FALSE,
  ask = FALSE
)

Arguments

object

R object to serialize.

task

Object of class D4TAlinkTask, as created by initTask.

type

Filename type. If the type is an array, the cocatenation of the elements is used with separator"-". Filenames have the form [task name]_[type].[ext]

subdir

(optional) Subdirectory.

dirCreate

Logical, if TRUE (by default) the directory is created.

encrypt

encrypt the output, default: FALSE. If character string, then use the string as password.

ask

query encryption key from user, default FALSE.

Value

the file name invisibly.


D4TAlink.light documentation built on April 4, 2025, 1:02 a.m.