Skip to content

Commit d208318

Browse files
committed
docs: readme
1 parent 71fa3a8 commit d208318

File tree

4 files changed

+49
-59
lines changed

4 files changed

+49
-59
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ cran-comments\.md
2020
^CRAN-SUBMISSION$
2121
.editorconfig
2222
^README\.Rmd$
23+
^README\.html$
24+
.vscode

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,5 @@ po/*~
107107
inst/doc
108108
cran-comments\.md
109109
CRAN-RELEASE
110+
.vscode
111+
^README\.html$

README.Rmd

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,24 @@ output: github_document
33
---
44

55
```{r, include=FALSE}
6+
library(mlr3)
7+
library(mlr3spatial)
8+
library(terra, exclude = "resample")
9+
library(sf)
10+
611
lgr::get_logger("mlr3")$set_threshold("warn")
712
lgr::get_logger("mlr3spatial")$set_threshold("warn")
813
set.seed(1)
9-
options(datatable.print.class = FALSE, datatable.print.keys = FALSE)
14+
options(
15+
datatable.print.nrows = 10,
16+
datatable.print.class = FALSE,
17+
datatable.print.keys = FALSE,
18+
width = 100)
1019
```
1120

1221
# mlr3spatial
1322

23+
Package website: [release](https://mlr3spatial.mlr-org.com/) | [dev](https://mlr3spatial.mlr-org.com/dev/)
1424

1525
<!-- badges: start -->
1626
[![r-cmd-check](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml/badge.svg)](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml)
@@ -19,20 +29,11 @@ options(datatable.print.class = FALSE, datatable.print.keys = FALSE)
1929
[![Mattermost](https://img.shields.io/badge/chat-mattermost-orange.svg)](https://lmmisld-lmu-stats-slds.srv.mwn.de/mlr_invite/)
2030
<!-- badges: end -->
2131

22-
Package website: [release](https://mlr3spatial.mlr-org.com/) | [dev](https://mlr3spatial.mlr-org.com/dev/)
23-
24-
{mlr3spatial} is an extension package for spatial objects within the [mlr3](https://mlr3.mlr-org.com) ecosystem.
25-
26-
## Feature Overview
27-
28-
* Read training data from [sf](https://CRAN.R-project.org/package=sf) objects.
29-
* Predict on raster objects from the packages [{terra}](https://CRAN.R-project.org/package=terra), [{raster}](https://CRAN.R-project.org/package=raster) and [{stars}](https://CRAN.R-project.org/package=stars).
30-
* Write model predictions to raster files.
31-
* Predict large raster objects in parallel.
32-
* Read raster objects in chunks to avoid memory issues.
33-
* Built-in toy task [`leipzig`](https://mlr3spatial.mlr-org.com/dev/reference/leipzig.html).
34-
35-
Check out [{mlr3spatiotempcv}](https://github.com/mlr-org/mlr3spatiotempcv) for spatiotemporal resampling within mlr3.
32+
*mlr3spatial* is the package for spatial objects within the [mlr3](https://mlr3.mlr-org.com) ecosystem.
33+
The package directly loads data from [sf](https://CRAN.R-project.org/package=sf) objects to train any mlr3 learner.
34+
The learner can predict on various raster formats ([{terra}](https://CRAN.R-project.org/package=terra), [{raster}](https://CRAN.R-project.org/package=raster) and [{stars}](https://CRAN.R-project.org/package=stars)) and writes the prediction raster to disk.
35+
mlr3spatial reads large raster objects in chunks to avoid memory issues and predicts the chunks in parallel.
36+
Check out [mlr3spatiotempcv](https://github.com/mlr-org/mlr3spatiotempcv) for spatiotemporal resampling within mlr3.
3637

3738
## Installation
3839

@@ -50,14 +51,6 @@ remotes::install_github("mlr-org/mlr3spatial")
5051

5152
## Example
5253

53-
```{r, include = FALSE}
54-
# mute load messages
55-
library(mlr3)
56-
library(mlr3spatial)
57-
library(terra, exclude = "resample")
58-
library(sf)
59-
```
60-
6154
```{r}
6255
library(mlr3)
6356
library(mlr3spatial)

README.md

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,28 @@
11

22
# mlr3spatial
33

4+
Package website: [release](https://mlr3spatial.mlr-org.com/) |
5+
[dev](https://mlr3spatial.mlr-org.com/dev/)
6+
47
<!-- badges: start -->
8+
59
[![r-cmd-check](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml/badge.svg)](https://github.com/mlr-org/mlr3spatial/actions/workflows/r-cmd-check.yml)
610
[![CRAN
711
status](https://www.r-pkg.org/badges/version/mlr3spatial)](https://CRAN.R-project.org/package=mlr3spatial)
812
[![StackOverflow](https://img.shields.io/badge/stackoverflow-mlr3-orange.svg)](https://stackoverflow.com/questions/tagged/mlr3)
913
[![Mattermost](https://img.shields.io/badge/chat-mattermost-orange.svg)](https://lmmisld-lmu-stats-slds.srv.mwn.de/mlr_invite/)
1014
<!-- badges: end -->
1115

12-
Package website: [release](https://mlr3spatial.mlr-org.com/) \|
13-
[dev](https://mlr3spatial.mlr-org.com/dev/)
14-
15-
{mlr3spatial} is an extension package for spatial objects within the
16-
[mlr3](https://mlr3.mlr-org.com) ecosystem.
17-
18-
## Feature Overview
19-
20-
- Read training data from [sf](https://CRAN.R-project.org/package=sf)
21-
objects.
22-
- Predict on raster objects from the packages
23-
[{terra}](https://CRAN.R-project.org/package=terra),
24-
[{raster}](https://CRAN.R-project.org/package=raster) and
25-
[{stars}](https://CRAN.R-project.org/package=stars).
26-
- Write model predictions to raster files.
27-
- Predict large raster objects in parallel.
28-
- Read raster objects in chunks to avoid memory issues.
29-
- Built-in toy task
30-
[`leipzig`](https://mlr3spatial.mlr-org.com/dev/reference/leipzig.html).
31-
32-
Check out
33-
[{mlr3spatiotempcv}](https://github.com/mlr-org/mlr3spatiotempcv) for
16+
*mlr3spatial* is the package for spatial objects within the
17+
[mlr3](https://mlr3.mlr-org.com) ecosystem. The package directly loads
18+
data from [sf](https://CRAN.R-project.org/package=sf) objects to train
19+
any mlr3 learner. The learner can predict on various raster formats
20+
([{terra}](https://CRAN.R-project.org/package=terra),
21+
[{raster}](https://CRAN.R-project.org/package=raster) and
22+
[{stars}](https://CRAN.R-project.org/package=stars)) and writes the
23+
prediction raster to disk. mlr3spatial reads large raster objects in
24+
chunks to avoid memory issues and predicts the chunks in parallel. Check
25+
out [mlr3spatiotempcv](https://github.com/mlr-org/mlr3spatiotempcv) for
3426
spatiotemporal resampling within mlr3.
3527

3628
## Installation
@@ -76,7 +68,7 @@ task
7668
## 3: 732737.2 5692469
7769
## 4: 733169.3 5692777
7870
## 5: 732202.2 5692644
79-
## ---
71+
## ---
8072
## 93: 733018.7 5692342
8173
## 94: 732551.4 5692887
8274
## 95: 732520.4 5692589
@@ -118,20 +110,21 @@ plot(land_cover, col = c("#440154FF", "#443A83FF", "#31688EFF",
118110
## FAQ
119111

120112
<details>
121-
<summary>
122-
Will mlr3spatial support spatial learners?
123-
</summary>
124-
<br> Eventually. It is not yet clear whether these would live in
113+
114+
<summary>Will mlr3spatial support spatial learners?</summary> <br>
115+
Eventually. It is not yet clear whether these would live in
125116
mlr3extralearners or in {mlr3spatial}. So far there are none yet.
117+
126118
</details>
119+
127120
<details>
128-
<summary>
129-
Why are there two packages, {mlr3spatial} and {mlr3spatiotempcv}?
130-
</summary>
131-
<br> mlr3spatiotempcv is solely devoted to resampling techniques. There
132-
are quite a few and keeping packages small is one of the development
133-
philosophies of the mlr3 framework. Also back in the days when
134-
mlr3spatiotempcv was developed it was not yet clear how we want to
135-
structure additional spatial components such as prediction support for
136-
spatial classes and so on.
121+
122+
<summary>Why are there two packages, {mlr3spatial} and
123+
{mlr3spatiotempcv}?</summary> <br> mlr3spatiotempcv is solely devoted to
124+
resampling techniques. There are quite a few and keeping packages small
125+
is one of the development philosophies of the mlr3 framework. Also back
126+
in the days when mlr3spatiotempcv was developed it was not yet clear how
127+
we want to structure additional spatial components such as prediction
128+
support for spatial classes and so on.
129+
137130
</details>

0 commit comments

Comments
 (0)