Skip to content

Commit

Permalink
return attributes for getReferenceCoordinatesForName
Browse files Browse the repository at this point in the history
  • Loading branch information
spoltier committed Apr 9, 2024
1 parent b629435 commit f751802
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/workbook.getReferenceCoordinates.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ setMethod("getReferenceCoordinates",
signature(object = "workbook"),
function(object, name) {
.Deprecated("getReferenceCoordinatesForName")
res <- xlcCall(object, "getReferenceCoordinatesForName", name)
res <- xlcCall(object, "getReferenceCoordinatesForName", name, .withAttributes = TRUE)
if(is.numeric(res)) { matrix(res, nrow = 2, byrow = TRUE) + 1 } else { res }
}
)
2 changes: 1 addition & 1 deletion R/workbook.getReferenceCoordinatesForName.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ setGeneric("getReferenceCoordinatesForName",
setMethod("getReferenceCoordinatesForName",
signature(object = "workbook"),
function(object, name, worksheetScope = NULL) {
res <- xlcCall(object, "getReferenceCoordinatesForName", name, worksheetScope %||% .jnull())
res <- xlcCall(object, "getReferenceCoordinatesForName", name, worksheetScope %||% .jnull(), .withAttributes = TRUE) # TODO with Attributes!
if(is.numeric(res)) { matrix(res, nrow = 2, byrow = TRUE) + 1 } else { res }
}
)
Binary file modified inst/java/XLConnect-3.0.0-SNAPSHOT.jar
Binary file not shown.

0 comments on commit f751802

Please sign in to comment.