Learn R Programming

AmigaFFH (version 0.4.7)

write.AmigaBasicShape: Write an AmigaBasicShape object to a file

Description

Write an AmigaBasicShape() class object to a file in its binary format.

Usage

write.AmigaBasicShape(x, file)

Value

Invisibly returns the result of the call of close to the file connection.

Arguments

x

The AmigaBasicShape() class object that needs to be stored.

file

A character string specifying the file location to which x (an AmigaBasicShape() object) needs to be written.

Author

Pepijn de Vries

Details

This function coerces the Amiga Basic Shape into its binary format (using as.raw()) and writes it to a file. The file can also be stored onto a virtual Amiga disk (adf_file_con()).

See Also

Other AmigaBasicShape.operations: AmigaBasicShape, rasterToAmigaBasicShape(), read.AmigaBasicShape()

Other io.operations: read.AmigaBasicBMAP(), read.AmigaBasicShape(), read.AmigaBasic(), read.AmigaBitmapFontSet(), read.AmigaBitmapFont(), read.AmigaIcon(), read.SysConfig(), read.iff(), write.AmigaBasic(), write.AmigaBitmapFont(), write.AmigaIcon(), write.SysConfig(), write.iff()

Examples

Run this code
filename <- system.file("ball.shp", package = "AmigaFFH")
ball     <- read.AmigaBasicShape(filename)
write.AmigaBasicShape(ball, file.path(tempdir(), "ball.shp"))

Run the code above in your browser using DataLab