amigaDisk-class {adfExplorer}R Documentation

The amigaDisk class


An S4 class representing the information from an Amiga Disk File.


An Amiga Disk File (ADF) holds the raw data of an Amiga disk in the same order as blocks (amigaBlock-class) on the physical disks. As an Amiga Disk can hold any kind of information, so can this class.

An ADF file does not hold any other information. The size of the file will dictate whether it represents a double density floppy disk (880 kB) or a high density floppy disk (1760 kB). The disk type is also stored in this class.

Finally, the current directory is stored with this class. Which is only useful for DOS-formatted disks (with a file structure). By default this is set to the disk's root.

For more (technical) backgrounds please check this package's vignette.

Use the objects constructor (new("amigaDisk")) to create a completely blank disk (without a filesystem). If you want to be able to transfer files from and to the virtual disk, use blank.amigaDOSDisk instead.



The raw data of the virtual disk. It should be a vector of length 901,120 in case of a double density disk and 1,802,240 in case of a high density disk.


A character indicating whether the virtual disk represents a "DD" (double density, most common) or "HD" (high density) disk.


An integer, pointing at the block address of the current directory of this virtual disk. Use current.adf.dir to get or set the current directory.


Pepijn de Vries


## This creates a blank non-bootable, non-DOS disk:

[Package adfExplorer version 0.1.6 Index]