Skip to content

Commit 67b8061

Browse files
committed
remove [,SpatialData,numeric
Former-commit-id: c7fc33d Former-commit-id: 73330201c9358f458105d100405436a4c618c7ec
1 parent 601e80e commit 67b8061

3 files changed

Lines changed: 0 additions & 13 deletions

File tree

R/methods.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,6 @@ setReplaceMethod("[[",
334334
})
335335
#' @export
336336
#' @rdname SpatialData
337-
setReplaceMethod("[[",
338-
c("SpatialData", "numeric", "ANY"),
339-
\(x, i, value) {
340-
if (!i %in% seq_along(.LAYERS)) stop(.invalid_layer)
341-
l <- .LAYERS[i]
342-
x[[l]] <- value
343-
x
344-
})
345-
#' @export
346-
#' @rdname SpatialData
347337
setReplaceMethod("[[",
348338
c("SpatialData", "ANY", "ANY"),
349339
\(x, i, value) stop(.invalid_layer))

man/SpatialData.Rd

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/SpatialData.Rmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ imageNames(sd)
145145
146146
# alternative ways
147147
# (using list-style)
148-
names(sd[[1]])
149148
names(sd$images)
150149
names(sd[["images"]])
151150
```

0 commit comments

Comments
 (0)