Skip to content

Commit 75a4100

Browse files
author
Tim Appelhans
committed
update readme to use terra
1 parent 4e4fd7a commit 75a4100

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ install.packages("cubeview")
3737
## Example
3838

3939
``` r
40-
library(raster)
40+
library(terra)
4141

4242
kili_data <- system.file("extdata", "kiliNDVI.tif", package = "cubeview")
43-
kiliNDVI <- stack(kili_data)
43+
kiliNDVI <- rast(kili_data)
4444

4545
cubeview(kiliNDVI)
4646
```

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ install.packages("cubeview")
2727
## Example
2828

2929
``` r
30-
library(raster)
30+
library(terra)
3131

3232
kili_data <- system.file("extdata", "kiliNDVI.tif", package = "cubeview")
33-
kiliNDVI <- stack(kili_data)
33+
kiliNDVI <- rast(kili_data)
3434

3535
cubeview(kiliNDVI)
3636
```

0 commit comments

Comments
 (0)