Skip to content

Commit 5c514b0

Browse files
committed
fix lintrs
1 parent d597eb1 commit 5c514b0

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

source/R/download_occ_cube.R

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ download_occ_cube <- function(sql_query, file, path, overwrite = FALSE) {
66
# Stop if overwrite = FALSE and file does not exist
77
file_path <- file.path(path, file)
88
if (file.exists(file_path) && !overwrite) {
9-
message(paste("File already exists. Reading existing file.",
10-
"Set `overwrite = TRUE` to overwrite file.", sep = "\n"))
9+
message(
10+
paste("File already exists. Reading existing file.",
11+
"Set `overwrite = TRUE` to overwrite file.", sep = "\n")
12+
)
1113

1214
occ_cube <- readr::read_csv(file = file_path, show_col_types = FALSE)
1315

@@ -34,7 +36,8 @@ download_occ_cube <- function(sql_query, file, path, overwrite = FALSE) {
3436
readr::write_csv(
3537
x = occ_cube,
3638
file = file_path,
37-
append = FALSE)
39+
append = FALSE
40+
)
3841

3942
# Return tibble
4043
return(occ_cube)

source/add_spatial_resources.Rmd

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,19 @@ mgrs10_resource <- list(
112112
name = "CC0-1.0",
113113
path = "https://creativecommons.org/publicdomain/zero/1.0/",
114114
title = "Creative Commons Zero v1.0 Universal"
115-
))
116-
)
115+
))
116+
)
117117
118118
b3data_package <- add_manual_resource(
119-
b3data_package, mgrs10_resource, replace = TRUE)
119+
b3data_package, mgrs10_resource, replace = TRUE
120+
)
120121
121122
# Write package to directory
122123
write_package(
123124
package = b3data_package,
124125
directory = package_path,
125-
compress = TRUE)
126+
compress = TRUE
127+
)
126128
```
127129

128130
## EEA 100 km reference grid Europe

source/create_b3data_package.Rmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ b3data_package <- create_package() %>%
167167
"Spatial aggregation is done using the MGRS grid at 10 km scale.",
168168
"Only grid cells that fall within the 10 km MGRS reference grid for",
169169
"mainland Belgium (see b3data: `mgrs10_refgrid_belgium.gpkg`) are",
170-
"included."),
170+
"included."
171+
),
171172
sources = list(list(
172173
title = "GBIF Occurrence Download",
173174
path = "https://doi.org/10.15468/dl.y3wpwk"
@@ -176,7 +177,7 @@ b3data_package <- create_package() %>%
176177
name = "CC0-1.0",
177178
path = "https://creativecommons.org/publicdomain/zero/1.0/",
178179
title = "Creative Commons Zero v1.0 Universal"
179-
))
180+
))
180181
)
181182
```
182183

@@ -215,5 +216,6 @@ dir.create(package_path, showWarnings = FALSE, recursive = TRUE)
215216
write_package(
216217
package = b3data_package,
217218
directory = package_path,
218-
compress = TRUE)
219+
compress = TRUE
220+
)
219221
```

0 commit comments

Comments
 (0)