File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11Package: m4ra
22Title: Many-to-Many Multi-Modal Routing Aggregator
3- Version: 0.1.1.048
3+ Version: 0.1.1.049
44Authors@R:
55 person(given = "Mark",
66 family = "Padgham",
Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ m4ra_cache_dir <- function (city = NULL) {
4040 if (! is.null (city )) {
4141 checkmate :: assert_character (city , len = 1L )
4242 flist <- fs :: dir_ls (cache_dir , type = " directory" , recurse = TRUE )
43- cache_dir <- flist [which (basename (flist ) == city )]
43+ if (! is.null (flist )) {
44+ cache_dir <- fs :: path (cache_dir , city )
45+ fs :: dir_create (cache_dir , recurse = TRUE )
46+ } else {
47+ cache_dir <- flist [which (basename (flist ) == city )]
48+ }
4449 if (length (cache_dir ) == 0L ) {
4550 cache_dir <- fs :: path (Sys.getenv (" M4RA_CACHE_DIR" ), city )
4651 }
Original file line number Diff line number Diff line change 77 "codeRepository" : " https://github.com/UrbanAnalyst/m4ra" ,
88 "issueTracker" : " https://github.com/UrbanAnalyst/m4ra/issues" ,
99 "license" : " https://spdx.org/licenses/GPL-3.0" ,
10- "version" : " 0.1.1.048 " ,
10+ "version" : " 0.1.1.049 " ,
1111 "programmingLanguage" : {
1212 "@type" : " ComputerLanguage" ,
1313 "name" : " R" ,
You can’t perform that action at this time.
0 commit comments