File: saveFormats.Rd

package info (click to toggle)
r-bioc-alabaster.base 1.6.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,652 kB
  • sloc: cpp: 11,377; sh: 29; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,509 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/saveFormats.R
\name{saveFormats}
\alias{saveFormats}
\alias{.saveDataFrameFormat}
\alias{saveDataFrameFormat}
\title{Choose the format for certain objects}
\usage{
saveDataFrameFormat(format)
}
\arguments{
\item{format}{String containing the format to use.
Tbe \code{"csv"}, \code{"csv.gz"} (default) or \code{"hdf5"}.
Alternatively \code{NULL}, to use the default format.}
}
\value{
If \code{format} is missing, a string containing the current format is returned, or \code{NULL} to use the default format.

If \code{format} is supplied, it is used to define the current format, and the \emph{previous} format is returned.
}
\description{
Alter the format used to save DataFrames in its \code{\link{stageObject}} methods.
}
\details{
\code{\link{stageObject}} methods will treat a \code{format=NULL} in the same manner as the default format.
The distinction exists to allow downstream applications to set their own defaults while still responding to user specification.
For example, an application can detect if the existing format is \code{NULL}, and if so, apply another default via \code{.saveDataFrameFormat}.
On the other hand, if the format is not \code{NULL}, this is presumably specified by the user explicitly and should be respected by the application.
}
\examples{
(old <- .saveDataFrameFormat())

.saveDataFrameFormat("hdf5")
.saveDataFrameFormat()

# Setting it back.
.saveDataFrameFormat(old)

}
\author{
Aaron Lun
}