Skip to contents

Export data from R

Usage

export(object, con, ...)

# S4 method for class 'SummarizedExperiment,character'
export(
  object,
  con,
  bindRowData = FALSE,
  compress = FALSE,
  overwrite = TRUE,
  quiet = FALSE
)

Arguments

object

Object.

con

character(1) or connection. Data connection. Use character(1) to represent a file path.

bindRowData

logical(1). Whether to column bind row data (e.g. gene annotations), slotted in rowData, to each exported assay matrix, defined in assays.

compress

logical(1). Apply gzip compression to all files.

overwrite

logical(1). Overwrite existing file on disk.

quiet

logical(1). Perform command quietly, suppressing messages.

...

Additional arguments.

Value

Invisible character or list of file paths.

Note

Updated 2023-10-05.

See also

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
object <- RangedSummarizedExperiment
con <- AcidBase::tempdir2()
#> Error in vapply(X = X, FUN = FUN, FUN.VALUE = logical(1L), ..., USE.NAMES = useNames): formal argument "USE.NAMES" matched by multiple actual arguments
x <- export(object = object, con = con)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'con' in selecting a method for function 'export': object 'con' not found
print(x)
#> Error: object 'x' not found
AcidBase::unlink2(con)
#> Error: object 'con' not found