Skip to content

Commit 5ecf963

Browse files
Remove obsolete deprecation comment (#6650)
1 parent c82abf7 commit 5ecf963

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

R/data.table.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,8 +2077,6 @@ as.matrix.data.table = function(x, rownames=NULL, rownames.value=NULL, ...) {
20772077
if (!is.null(rownames)) {
20782078
if (!is.null(rownames.value)) stopf("rownames and rownames.value cannot both be used at the same time")
20792079
if (length(rownames)>1L) {
2080-
# TODO in future as warned in NEWS for 1.11.6:
2081-
# warningf("length(rownames)>1 is deprecated. Please use rownames.value= instead")
20822080
if (length(rownames)!=nrow(x))
20832081
stopf("length(rownames)==%d but nrow(DT)==%d. The rownames argument specifies a single column name or number. Consider rownames.value= instead.", length(rownames), nrow(x))
20842082
rownames.value = rownames

0 commit comments

Comments
 (0)