I am declaring a class using:
setRefClass("XLSXFile",
fields = list(
wb= "workbook",
sheet= "character",
at.line= "numeric"
)
)
The code does not compile. I get the error:
Error in .local(.Object, ...) :
argument "filename" is missing, with no default
The error is generated because of this line:
wb= "workbook",
How can I declare a workbook field in a class? What function is the interpreter trying to invoke which needs the filename parameter? my guess it in loadWorkbook since I am using XLConnect but how do I supply the parameter while declaring the class?