Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write.iff

Write Interchange File Format (IFF)


Description

Write an IFFChunk object conform the Interchange File Format (IFF).

Usage

write.iff(x, file, disk = NULL)

Arguments

x

An IFFChunk object that needs to be written to a file.

file

A filename for the IFF file to which the IFFChunk needs to be saved, or a connection to which the data should be written.

disk

A virtual Commodore Amiga disk to which the file should be written. This should be an amigaDisk object. Using this argument requires the adfExplorer package. When set to NULL, this argument is ignored.

Details

Writes an IFFChunk object (including all nested chunks) to the specified file. Only the structure of the object needs to be valid, however, a correctly structured file does not necessarily result in an interpretable file (see examples).

Value

Returns either NULL or an integer status invisibly as passed by the close statement used to close the file connection. When disk is specified, a copy of disk is returned to which the file is written.

Author(s)

Pepijn de Vries

References

See Also

Examples

## Not run: 
## read an IFF file as an IFFChunk object:
example.iff <- read.iff(system.file("ilbm8lores.iff", package = "AmigaFFH"))

## This will write the IFF file (in this case a bitmap image)
## to the temp directory:
write.iff(example.iff, file.path(tempdir(), "image.iff"))


## End(Not run)

AmigaFFH

Commodore Amiga File Format Handler

v0.3.1
GPL-3
Authors
Pepijn de Vries [aut, cre, dtc]
Initial release
2019-03-31

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.