as.character: Coerce an AmigaBasic class object to its character...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Coerce an AmigaBasic-class object to its character representation

Usage

1
2
## S3 method for class 'AmigaBasic'
as.character(x, ...)

Arguments

x

An AmigaBasic class object that needs to be coerced to its character representation.

...

Currently ignored.

Details

Amiga Basic files are encoded in a binary format and are also stored as such in AmigaBasic-class objects. Use this function to convert these objects into legible character data.

Value

A vector of character strings, where each element of the vector is a character representation of a line of Amiga Basic code stored in x.

Author(s)

Pepijn de Vries

See Also

Other AmigaBasic.operations: AmigaBasic.reserved(), AmigaBasicBMAP, AmigaBasic, [.AmigaBasic(), as.AmigaBasicBMAP(), as.AmigaBasic(), check.names.AmigaBasic(), names.AmigaBasic(), rawToAmigaBasicBMAP(), rawToAmigaBasic(), read.AmigaBasicBMAP(), read.AmigaBasic(), write.AmigaBasic()

Examples

1
2
3
4
5
6
7
8
## Not run: 
## First create an Amiga Basic object:
bas <- as.AmigaBasic("PRINT \"Hello world!\"")

## now convert the object back into text:
bas.txt <- as.character(bas)

## End(Not run)

AmigaFFH documentation built on Sept. 5, 2021, 5:22 p.m.