Skip to content

Commit

Permalink
Update help page for new warning behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Sep 13, 2023
1 parent 3a677de commit 10ae4e5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* src/anytime.cpp (convertToTime): Warn if NA values resulting from
conversion to character (and only one warning will be give)
* R/anytime.R: Updated docs
* man/anytime.Rd: Idem

2023-09-09 Dirk Eddelbuettel <edd@debian.org>

Expand Down
10 changes: 9 additions & 1 deletion R/anytime.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

## anytime: Use Boost Date_Time to convert date(time) data to POSIXt
##
## Copyright (C) 2015 - 2020 Dirk Eddelbuettel
## Copyright (C) 2015 - 2023 Dirk Eddelbuettel
##
## This file is part of anytime.
##
Expand Down Expand Up @@ -119,6 +119,14 @@
##' to \code{TRUE} in startup file. Note that all other inputs such character,
##' factor or ordered are not affected.
##'
##' @section Warnings:
##' As of version 0.3.10, a conversion from character resulting in a \code{NA}
##' will lead to a warning being emitted. At most one warning per call is given:
##' should numerous unparseable values be present on input, only one warning will
##' be show. R offers mechanism to either suppress warnings, or convert them
##' to errors as described in the help page for \code{options()} under the entry
##' for \code{warn}.
##'
##' @title Parse POSIXct or Date objects from input data
##' @param x A vector of type character, integer or numeric with date(time)
##' expressions to be parsed and converted.
Expand Down
10 changes: 10 additions & 0 deletions man/anytime.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10ae4e5

Please sign in to comment.