| as.AmigaBasic {AmigaFFH} | R Documentation |
Coerce raw or character data to an AmigaBasic class object
Description
Coerce raw or character data to an AmigaBasic() S3 class object
Usage
as.AmigaBasic(x, ...)
Arguments
x |
When |
... |
Currently ignored. |
Details
Convert text to an AmigaBasic() S3 class object. The text should
consist of valid Amiga BASIC syntaxis. This function does not perform a
full check of the syntaxis, but will break on some fundamental syntaxis malformations
Value
Returns an AmigaBasic() class object based on x.
Author(s)
Pepijn de Vries
References
https://en.wikipedia.org/wiki/AmigaBASIC
See Also
Other AmigaBasic.operations:
AmigaBasic.reserved(),
AmigaBasicBMAP,
AmigaBasic,
[.AmigaBasic(),
as.AmigaBasicBMAP(),
as.character(),
check.names.AmigaBasic(),
names.AmigaBasic(),
rawToAmigaBasicBMAP(),
rawToAmigaBasic(),
read.AmigaBasicBMAP(),
read.AmigaBasic(),
write.AmigaBasic()
Other raw.operations:
as.raw.AmigaBasic(),
colourToAmigaRaw(),
packBitmap(),
rawToAmigaBasicBMAP(),
rawToAmigaBasicShape(),
rawToAmigaBasic(),
rawToAmigaBitmapFontSet(),
rawToAmigaBitmapFont(),
rawToAmigaIcon(),
rawToHWSprite(),
rawToIFFChunk(),
rawToSysConfig(),
simpleAmigaIcon()
Examples
## Not run:
## An AmigaBasic object can be created from text.
## Note that each line of code is a seperate element
## in the vector:
bas <- as.AmigaBasic(c(
"CLS ' Clear the screen",
"PRINT \"Hello world!\" ' Print a message on the screen"
))
## Let's make it raw data:
bas.raw <- as.raw(bas)
## We can also use the raw data to create an Amiga Basic object:
## Note that this effectively the same as calling 'rawToAmigaBasic'
bas <- as.AmigaBasic(bas.raw)
## End(Not run)