Skip to content

Commit 558250f

Browse files
committed
fix batch_filename fn
1 parent 5617dc5 commit 558250f

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: uaengine
22
Title: Routing and aggregation engine for 'Urban Analyst'
3-
Version: 0.3.2.014
3+
Version: 0.3.2.015
44
Authors@R:
55
person(given = "Mark",
66
family = "Padgham",

R/ua-batch.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,16 +202,14 @@ batch_start_message <- function () {
202202

203203
#' @param index One list element of the full `index` generated by
204204
#' `get_vertex_indices()`.
205+
#'
206+
#' @param results_path Path to city sub-directory of UA results directory.
205207
#' @noRd
206208
get_batch_filename <- function (results_path, city, index) {
207209

208210
ival <- max (index)
209211
f <- paste0 (city, "-", sprintf ("%06i", ival), ".Rds")
210-
city_dir <- fs::path_abs (fs::path (results_path, city))
211-
if (!fs::dir_exists (city_dir)) {
212-
fs::dir_create (city_dir)
213-
}
214-
f <- fs::path_abs (fs::path (city_dir, f))
212+
f <- fs::path_abs (fs::path (results_path, f))
215213

216214
return (f)
217215
}

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"codeRepository": "https://github.com/UrbanAnalyst/uaengine",
88
"issueTracker": "https://github.com/UrbanAnalyst/uaengine/issues",
99
"license": "https://spdx.org/licenses/GPL-3.0",
10-
"version": "0.3.2.014",
10+
"version": "0.3.2.015",
1111
"programmingLanguage": {
1212
"@type": "ComputerLanguage",
1313
"name": "R",

0 commit comments

Comments
 (0)