mirror of
https://github.com/sensebox/opensensmapr
synced 2025-02-22 06:23:57 +01:00
fix lint
This commit is contained in:
parent
92cbbcbfc7
commit
32d0cceb28
4 changed files with 24 additions and 24 deletions
2
.lintr
2
.lintr
|
@ -1,4 +1,4 @@
|
||||||
exclusions: list('inst/doc/osem-intro.R')
|
exclusions: list.files(path = 'inst/doc', full.names = T)
|
||||||
linters: with_defaults(
|
linters: with_defaults(
|
||||||
# we use snake case
|
# we use snake case
|
||||||
camel_case_linter = NULL,
|
camel_case_linter = NULL,
|
||||||
|
|
|
@ -131,5 +131,5 @@ build_archive_url = function (date, box, sensor) {
|
||||||
#' https://github.com/sensebox/osem-archiver/blob/612e14b/helpers.sh#L66
|
#' https://github.com/sensebox/osem-archiver/blob/612e14b/helpers.sh#L66
|
||||||
osem_box_to_archivename = function (box) {
|
osem_box_to_archivename = function (box) {
|
||||||
name = gsub('[^A-Za-z0-9._-]', '_', box$name)
|
name = gsub('[^A-Za-z0-9._-]', '_', box$name)
|
||||||
paste(box$X_id, name, sep='-')
|
paste(box$X_id, name, sep = '-')
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ test_that('both from and to are required when requesting boxes, error otherwise'
|
||||||
test_that('a list of boxes with phenomenon filter returns only the requested phenomenon', {
|
test_that('a list of boxes with phenomenon filter returns only the requested phenomenon', {
|
||||||
check_api()
|
check_api()
|
||||||
|
|
||||||
boxes = osem_boxes(phenomenon = 'Temperatur', date=Sys.time())
|
boxes = osem_boxes(phenomenon = 'Temperatur', date = Sys.time())
|
||||||
expect_true(all(grep('Temperatur', boxes$phenomena)))
|
expect_true(all(grep('Temperatur', boxes$phenomena)))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue