Learn R Programming

D4TAlink.light (version 2.1.18)

saveReportJSON: Output R object in JSON format.

Description

Output R object in JSON format.

Usage

saveReportJSON(x, task, type, ext = "json", subdir = NULL, dirCreate = TRUE)

Value

the file name invisibly.

Arguments

x

R object to output.

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]

ext

Filename extension.

subdir

(optional) Subdirectory.

dirCreate

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