使用XLConnect时出现新错误。我目前正在使用R 2.15.0和XLConnect 0.2-5。使用createName的包文档中的示例时出现以下错误: UseMethod(“createName”)中的错误: 没有适用于“createName”的方法应用于“workbook”类的对象
# Load workbook (create if not existing)
wb <- loadWorkbook("autofilter.xlsx", create = TRUE)
# Create a worksheet named ’mtcars’
createSheet(wb, name = "mtcars")
# Create a named region called ’mtcars’ on the sheet called ’mtcars’
createName(wb, name = "mtcars", formula = "mtcars!$A$1")
感谢您的帮助。