blank.amigaDOSDisk {adfExplorer} | R Documentation |
Create blank disk with file system
Description
Create a virtual blank DOS formatted floppy disk with a file system on it.
Usage
## S4 method for signature 'character'
blank.amigaDOSDisk(
diskname,
disktype = c("DD", "HD"),
filesystem = c("OFS", "FFS"),
international = F,
dir.cache = F,
bootable = T,
creation.date = Sys.time()
)
Arguments
diskname |
A |
disktype |
Either " |
filesystem |
Either " |
international |
The international mode was introduced in Amiga
OS 2.0. In lower versions, international characters were mistakenly
not converted to uppercase when comparing file names. The international
mode (set this argument to |
dir.cache |
The directory cache mode (set this argument to
|
bootable |
When this argument is set to |
creation.date |
A |
Details
Creates a blank amigaDisk
object. This method differs
from the object constructor (new("amigaDisk")
) because it also
installs a file system on the disk. The blank disk can thus be used to
write files onto, and is also usable in Amiga emulators. For use in
emulators, the object needs to be saved with the write.adf
method.
Value
Returns a blank amigaDisk
object with a file
system installed on it.
Author(s)
Pepijn de Vries
Examples
## Create a blank virtual disk compatible with
## Amiga OS 1.x and up (Note that spaces in file and
## disk names are allowed but not recommended):
disk.os1x <- blank.amigaDOSDisk(diskname = "I'm_OS_1.x_compatible",
disktype = "DD",
filesystem = "OFS",
international = FALSE,
dir.cache = FALSE,
bootable = TRUE)
## create a disk that is compatible with OS 2.x and up
## (no backward compatibility):
disk.os2x <- blank.amigaDOSDisk(diskname = "I'm_OS_2.x_compatible",
disktype = "DD",
filesystem = "FFS",
international = TRUE,
dir.cache = FALSE,
bootable = TRUE)
## create a disk that is compatible with OS 3.x and up
## (no backward compatibility):
disk.os3x <- blank.amigaDOSDisk(diskname = "I'm_OS_3.x_compatible",
disktype = "DD",
filesystem = "FFS",
international = TRUE,
dir.cache = TRUE,
bootable = TRUE)