Learn R Programming

XLConnect (version 0.2-9)

print-methods: Print a workbook's filename

Description

Prints the workbook's underlying filename.

Usage

## S3 method for class 'workbook':
print(x,...)

Arguments

x
The workbook to print
...
Arguments passed on to standard print

Details

Prints the specified workbook's filename (see also the S4 filename slot of the workbook class).

See Also

workbook

Examples

Run this code
# Load existing demo Excel file 'mtcars.xlsx' from the XLConnect package
wb.mtcars <- loadWorkbook(system.file("demoFiles/mtcars.xlsx", 
                          package = "XLConnect"))

# Print the workbook's underlying filename
print(wb.mtcars)

Run the code above in your browser using DataLab