writeVarMetadata: writexlxs: write AnnotatedDataFrame to a xlsx file

View source: R/writeVarMetadata.R

writeVarMetadataR Documentation

writexlxs: write AnnotatedDataFrame to a xlsx file

Description

writexlxs: write AnnotatedDataFrame to a xlsx file

Usage

writeVarMetadata(x, path = tempfile(fileext = ".xlsx"), overwrite = TRUE)

## Default S3 method:
writeVarMetadata(x, path = tempfile(fileext = ".xlsx"), overwrite = TRUE)

Arguments

x

An ExpressionSet object or an AnnotatedDataFrame.

path

The xlsx file name to be written to.

overwrite

Logical, whether the file should be overwritten if it exists.

Value

An invisible TRUE in case the file is successfully created, else FALSE.

Note

We also tried the writexl package but the comments are not well supported by writexl, therefore we stay with openxlsx

Examples

data("ribiosExpressionSet", package="ribiosExpression")
outfile <- tempfile()
writeVarMetadata(ribiosExpressionSet, path=outfile)
writeVarMetadata(phenoData(ribiosExpressionSet), path=outfile)

bedapub/ribiosExpression documentation built on Sept. 2, 2023, 4:37 a.m.