Skip to content

Commit

Permalink
Merge pull request #462 from rich-iannone/v1.0.9-rc
Browse files Browse the repository at this point in the history
Release DiagrammeR v1.0.9
  • Loading branch information
rich-iannone authored Mar 7, 2022
2 parents b962572 + 6964ec7 commit 4357d9a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: DiagrammeR
Title: Graph/Network Visualization
Version: 1.0.8.9000
Version: 1.0.9
Authors@R:
person("Richard", "Iannone", , "[email protected]", c("aut", "cre"),
comment = c(ORCID = "0000-0003-3925-190X"))
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DiagrammeR (development version)
# DiagrammeR 1.0.9

* More safely check inputs to `grViz()` and `mermaid()`

Expand Down
2 changes: 1 addition & 1 deletion R/count_graphs_in_graph_series.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#' @export
count_graphs_in_graph_series <- function(graph_series) {

if (class(graph_series) == "dgr_graph_1D") {
if (inherits(graph_series, "dgr_graph_1D")) {
if (is.null(graph_series$graphs)) {
return(0)
}
Expand Down
4 changes: 2 additions & 2 deletions R/filter_graph_series.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ filter_graph_series <- function(graph_series,
if (by == "number") {

# validate the value provided for 'values'
if (class(values) != "numeric") {
if (!inherits(values, "numeric")) {

return(graph_series)
}
Expand Down Expand Up @@ -123,7 +123,7 @@ filter_graph_series <- function(graph_series,
if (by == "time") {

# validate the value provided for 'values'
if (class(values) == "numeric") {
if (inherits(values, "numeric")) {

return(graph_series)
}
Expand Down
2 changes: 1 addition & 1 deletion R/set_graph_time.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ set_graph_time <- function(graph,
tz <- Sys.timezone()
}

if (class(time)[1] == "POSIXct") {
if (inherits(time[1], "POSIXct")) {

if (!is.null(attr(time, "tzone"))) {
tz <- attr(time, "tzone")
Expand Down

0 comments on commit 4357d9a

Please sign in to comment.