Skip to content

Commit

Permalink
fix writing when match date is NA
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondben committed Mar 16, 2020
1 parent 6bb39a7 commit 34b37c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,6 +1,6 @@
Package: datavolley
Title: Reading and Analyzing DataVolley Scouting Files
Version: 0.13.0
Version: 0.13.1
Authors@R: person("Ben", "Raymond", email = "ben@untan.gl", role = c("aut", "cre"))
Description: Provides functions for parsing and working with volleyball match files in DataVolley format.
Depends:
Expand Down
2 changes: 1 addition & 1 deletion R/write.R
Expand Up @@ -173,7 +173,7 @@ dvw_match <- function(x, text_encoding, date_format) {
mm <- x$meta$match
if (is.null(mm)) stop("missing the meta$match component of the input object")
if (!missing(text_encoding)) mm$text_encoding <- text_encoding
mm$date <- format(mm$date, date_format)
if (!is.na(mm$date)) mm$date <- format(mm$date, date_format)
c("[3MATCH]", df2txt(mm), ";;12345;;;;;;")
}

Expand Down

0 comments on commit 34b37c9

Please sign in to comment.