Skip to contents

Export data from R

Usage

export(object, con, ...)

# S4 method for Cellosaurus,character
export(object, con, ...)

Arguments

object

Object.

con

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

...

Passthrough arguments to DFrame method.

Value

Invisible character or list of file paths.

Note

Updated 2023-09-22.

See also

Examples

data(cello)

## Cellosaurus ====
object <- cello
tempdir <- AcidBase::tempdir2()
con <- file.path(tempdir, "cello.csv")
x <- export(object = object, con = con)
#> → Exporting /private/var/folders/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/Rtmp6IOT8e/EUrhFDv6iY-171019356415033/cello.csv using base::`write.table()`.
print(x)
#> [1] "/private/var/folders/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/Rtmp6IOT8e/EUrhFDv6iY-171019356415033/cello.csv"
AcidBase::unlink2(tempdir)