Learn R Programming

adfExplorer (version 2.0.3)

format.adf_device: Basic methods for S3 class objects

Description

Format and print methods for all S3 class objects created with adfExplorer

Usage

# S3 method for adf_device
format(x, ...)

# S3 method for adf_file_con format(x, ...)

# S3 method for adf_block format(x, ...)

# S3 method for virtual_path format(x, width = 20L, ...)

# S3 method for adf_device print(x, ...)

# S3 method for adf_file_con print(x, ...)

# S3 method for adf_block print(x, ...)

# S3 method for virtual_path print(x, ...)

# S3 method for virtual_path as.character(x, ...)

Arguments

x

Object to be formatted or printed

...

Ignored or passed on to next methods

width

Set the text width for formatting virtual paths

Examples

Run this code
my_device <- demo_adf()
vp        <- list_adf_entries(my_device, recursive = TRUE)
con       <- adf_file_con(my_device, "s/startup-sequence")
block     <- read_adf_block(my_device, 0L)

format(my_device)
format(vp)
format(con)
format(block)

print(my_device)
print(vp)
print(con)
print(block)

close(con)
close(my_device)

Run the code above in your browser using DataLab