2323# '
2424# ' @examples
2525# ' x <- file.path("extdata", "blobs.zarr")
26- # ' x <- system.file(x, package="SpatialData ")
26+ # ' x <- system.file(x, package="spatialdataR ")
2727# ' x <- readSpatialData(x, tables=FALSE)
2828# '
2929# ' ms <- lapply(seq(3), \(.)
3939# ' cl <- rep(list(c(0, 1/3)), 3)
4040# ' plotSpatialData() + plotImage(x, k=1, c=cmy, cl=cl)
4141# '
42- # ' @import SpatialData
42+ # ' @import spatialdataR
4343NULL
4444
4545.check_cl <- \(cl , d ) {
139139}
140140
141141# check if channels are indices or channel names
142- # ' @importFrom SpatialData channels
142+ # ' @importFrom spatialdataR channels
143143# ' @noRd
144144.ch_idx <- \(x , ch ) {
145145 if (is.null(ch )) return (1 )
@@ -158,15 +158,15 @@ NULL
158158
159159# ' @importFrom methods as
160160# ' @importFrom DelayedArray realize
161- # ' @importFrom SpatialData data_type
161+ # ' @importFrom spatialdataR data_type
162162.df_i <- \(x , k = NULL , ch = NULL , c = NULL , cl = NULL ) {
163163 a <- .get_multiscale_data(x , k )
164164 a <- a [.ch_idx(x , ch ),,,drop = FALSE ]
165165 a <- .norm_ia(a , data_type(x ))
166166 a <- .prep_ia(a , c , cl )
167167}
168168
169- # ' @importFrom SpatialData transform
169+ # ' @importFrom spatialdataR transform
170170.get_wh <- \(x ) {
171171 wh <- metadata(x )$ wh
172172 if (! is.null(wh )) {
0 commit comments