if (FALSE) {
## 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)
}
Run the code above in your browser using DataLab