Skip to content

Commit e56cbba

Browse files
committed
Remove comments and reformat code in 'tests/testthat.R'
This was done in order to make room for test output in CRAN checks, in case tests should give an error again.
1 parent a4068ac commit e56cbba

6 files changed

Lines changed: 15 additions & 19 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: srppp
22
Type: Package
33
Title: Read the Swiss Register of Plant Protection Products
4-
Version: 2.0.2
5-
Date: 2026-02-11
4+
Version: 2.0.3
5+
Date: 2026-02-19
66
Authors@R: c(
77
person("Daniel", "Baumgartner", role = "ctb",
88
comment = "Provided feedback, explanations and background information"),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## version 2.0.3
2+
3+
- Remove comments and reformat code in 'tests/testthat.R', in order to make room for test output in CRAN checks, in case tests should give an error again.
4+
15
## version 2.0.2
26

37
- Include the latest XML file published the registration authorities instead of the file from December 2025, because in the current version the information to correctly read the culture tree is included again.

log/build.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
* checking for LF line-endings in source and make files and shell scripts
77
* checking for empty or unneeded directories
88
Omitted ‘LazyData’ and ‘LazyDataCompression’ from DESCRIPTION
9-
* building ‘srppp_2.0.2.tar.gz’
9+
* building ‘srppp_2.0.3.tar.gz’
1010

log/check.log

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* using options ‘--no-tests --as-cran’
1010
* checking for file ‘srppp/DESCRIPTION’ ... OK
1111
* checking extension type ... Package
12-
* this is package ‘srppp’ version ‘2.0.2
12+
* this is package ‘srppp’ version ‘2.0.3
1313
* package encoding: UTF-8
1414
* checking CRAN incoming feasibility ... OK
1515
* checking package namespace information ... OK
@@ -56,12 +56,12 @@
5656
* checking installed files from ‘inst/doc’ ... OK
5757
* checking files in ‘vignettes’ ... OK
5858
* checking examples ... OK
59-
* checking examples with --run-donttest ... [53s/63s] OK
59+
* checking examples with --run-donttest ... [55s/85s] OK
6060
* checking for unstated dependencies in ‘tests’ ... OK
6161
* checking tests ... SKIPPED
6262
* checking for unstated dependencies in vignettes ... OK
6363
* checking package vignettes ... OK
64-
* checking re-building of vignette outputs ... [26s/25s] OK
64+
* checking re-building of vignette outputs ... [28s/29s] OK
6565
* checking PDF version of manual ... OK
6666
* checking HTML version of manual ... NOTE
6767
Skipping checking HTML validation: no command 'tidy' found.

log/test.log

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
✔ | F W S OK | Context
33
✔ | 7 | alternative_products [1.4s]
44
✔ | 16 | resolve_cultures
5-
✔ | 7 | srppp_xml [3.4s]
5+
✔ | 7 | srppp_xml [3.2s]
66
✔ | 5 | use_rates
77

88
══ Results ═════════════════════════════════════════════════════════════════════
9-
Duration: 5.3 s
9+
Duration: 5.1 s
1010

1111
[ FAIL 0 | WARN 0 | SKIP 0 | PASS 35 ]
12+
13+
🎯 Your tests hit the mark 🎯

tests/testthat.R

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
# This file is part of the standard setup for testthat.
2-
# It is recommended that you do not modify it.
3-
#
4-
# Where should you do additional test configuration?
5-
# Learn more about the roles of various files in:
6-
# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
7-
# * https://testthat.r-lib.org/articles/special-files.html
8-
9-
library(testthat)
10-
library(srppp)
11-
1+
library(testthat); library(srppp, warn.conflicts = FALSE)
122
test_check("srppp")

0 commit comments

Comments
 (0)