read.AmigaIcon: Read an Amiga Workbench icon (info) file

View source: R/workbench_icon.r

read.AmigaIconR Documentation

Read an Amiga Workbench icon (info) file


Graphical representation of files and directories (icons) are stored as separate files (with the .info extension) on the Amiga. This function reads such files and imports them as AmigaIcon class objects.


read.AmigaIcon(file, disk = NULL, ...)



A character string representing the file name from which the icon data should be read.


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


Arguments passed on to rawToAmigaIcon.


The AmigaIcon S3 object provides a comprehensive format for Amiga icons, which are used as a graphical representation of files and directories on the Amiga. The AmigaIcon is a named list containing all information of an icon. Use this function to read an Amiga icon (with the .info extension) from a file and convert it into an AmigaIcon object.


Returns an AmigaIcon class object as read from the file.


Pepijn de Vries

See Also

Other AmigaIcon.operations: AmigaIcon, rawToAmigaIcon(), simpleAmigaIcon(), write.AmigaIcon()

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


## Not run: 
## create a simple AmigaIcon:
icon <- simpleAmigaIcon()

## write the icon to the temp dir:
write.AmigaIcon(icon, file.path(tempdir(), ""))

## read the same file:
icon2 <- read.AmigaIcon(file.path(tempdir(), ""))

## End(Not run)

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