write.AmigaBasicShape: Write an AmigaBasicShape object to a file

View source: R/basic.r

write.AmigaBasicShapeR Documentation

Write an AmigaBasicShape object to a file


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


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



The AmigaBasicShape class object that needs to be stored.


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


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.


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 (amigaDisk).


Invisibly returns the result of the call of close to the file connection. Or, when disk is specified, a copy of disk is returned to which the file(s) is/are written.


Pepijn de Vries

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()


## Not run: 
filename <- system.file("ball.shp", package = "AmigaFFH")
ball     <- read.AmigaBasicShape(filename)
write.AmigaBasicShape(ball, file.path(tempdir(), "ball.shp"))

## End(Not run)

AmigaFFH documentation built on Aug. 27, 2023, 9:07 a.m.