Export data out of R and write to disk.

export(object, ...)

# S4 method for FGSEAList
export(object, name = NULL, dir = ".")

Arguments

object

Object.

name

character(1). Name to use on disk. If NULL, will use the name of the object instead.

dir

character(1). Directory path.

...

Additional arguments.

Value

Invisibily return file paths, either as list or character.

Examples

data(gsea) export(gsea, dir = "example")
#> Exporting to /Users/mike/git/packages/pfgsea/docs/reference/example/gsea.
#> Exported h.csv.
sort(list.files(file.path("example", "gsea")))
#> [1] "dmso_r1881_vs_etoh"
unlink("example", recursive = TRUE)