Skip to content

Commit 8771203

Browse files
Doc : Improve vignettes/README
1 parent fa02912 commit 8771203

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ run_app()
5252

5353
## Cartography tab
5454

55-
### Visuasilation of home page
55+
### Visualization of home page
5656

5757
![](man/figures/accueil.png)
5858

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ run_app()
5353

5454
## Cartography tab
5555

56-
### Visuasilation of home page
56+
### Visualization of home page
5757

5858
![](man/figures/accueil.png)
5959

tests/testthat/test-get_info_chene_truffe.R

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,23 @@ test_that("get_info_chene_truffe works", {
4040
)
4141

4242
expect_equal(get_info_chene_truffe(dbtruffe, "3"), expected_output)
43+
44+
45+
46+
dbtruffe <- data.frame(
47+
idoak = c("1"),
48+
weight = c(100),
49+
date_found = c(
50+
"2024-01-01"
51+
),
52+
comment = c(
53+
"Belle truffe"
54+
)
55+
)
56+
57+
expect_equal(get_info_chene_truffe(dbtruffe, "1"), list(
58+
weight_tot = 100, derniere_truffe = structure(19723, class = "Date"),
59+
last_comment = "2024-01-01 : Belle truffe", other_comments = "-"
60+
))
61+
4362
})

vignettes/truffles.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ knitr::opts_chunk$set(
1414
)
1515
```
1616

17-
```{r setup}
17+
```{r setup, message = FALSE, warning=FALSE}
18+
1819
library(truffles)
1920
library(DBI)
2021
library(lubridate)

0 commit comments

Comments
 (0)