Skip to content

Commit

Permalink
always remove non-dirs (pik-piam#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
orichters authored Sep 7, 2023
1 parent df81b20 commit 995319e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '3058692'
ValidationKey: '3078299'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'modelstats: Run Analysis Tools'
version: 0.15.6
version: 0.15.7
date-released: '2023-09-07'
abstract: A collection of tools to analyze model runs.
authors:
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: modelstats
Type: Package
Title: Run Analysis Tools
Version: 0.15.6
Version: 0.15.7
Date: 2023-09-07
Authors@R: c(
person("Anastasis", "Giannousakis", email = "[email protected]", role = c("aut","cre")),
Expand Down
6 changes: 4 additions & 2 deletions R/loopRuns.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ loopRuns <- function(mydir, user = NULL, colors = TRUE, sortbytime = TRUE) {
underline(green("converged")), ", ", blue("converged (had INFES)"), ", ",
green("finished"), ", ", red("error"), ".\n\n", sep = "")
}
a <- file.info(mydir)
a <- a[a[, "isdir"] == TRUE, ]
if (isTRUE(sortbytime)) {
a <- file.info(mydir)
a <- a[a[, "isdir"] == TRUE, ]
mydir <- rownames(a[order(a[, "mtime"], decreasing = TRUE), ])
} else {
mydir <- rownames(a)
}
len <- max(c(15, nchar(basename(normalizePath(mydir, mustWork = FALSE)))))
len <- min(67, len)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Run Analysis Tools

R package **modelstats**, version **0.15.6**
R package **modelstats**, version **0.15.7**

[![CRAN status](https://www.r-pkg.org/badges/version/modelstats)](https://cran.r-project.org/package=modelstats) [![R build status](https://github.com/pik-piam/modelstats/workflows/check/badge.svg)](https://github.com/pik-piam/modelstats/actions) [![codecov](https://codecov.io/gh/pik-piam/modelstats/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/modelstats) [![r-universe](https://pik-piam.r-universe.dev/badges/modelstats)](https://pik-piam.r-universe.dev/builds)

Expand Down Expand Up @@ -47,7 +47,7 @@ In case of questions / problems please contact Anastasis Giannousakis <giannou@p

To cite package **modelstats** in publications use:

Giannousakis A, Richters O (2023). _modelstats: Run Analysis Tools_. R package version 0.15.6, <URL: https://github.com/pik-piam/modelstats>.
Giannousakis A, Richters O (2023). _modelstats: Run Analysis Tools_. R package version 0.15.7, <URL: https://github.com/pik-piam/modelstats>.

A BibTeX entry for LaTeX users is

Expand All @@ -56,7 +56,7 @@ A BibTeX entry for LaTeX users is
title = {modelstats: Run Analysis Tools},
author = {Anastasis Giannousakis and Oliver Richters},
year = {2023},
note = {R package version 0.15.6},
note = {R package version 0.15.7},
url = {https://github.com/pik-piam/modelstats},
}
```

0 comments on commit 995319e

Please sign in to comment.