-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use internal copy of
to_numeric()
(#191)
* Use internal copy of to_numeric Since it will be removed from datawizard: easystats/datawizard#197 (comment) modelbased needs to be updated on CRAN before datawizard. * Update render-readme.yml * Update render-readme.yml
- Loading branch information
1 parent
671ba59
commit 005e2ba
Showing
4 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#' @keywords internal | ||
#' @noRd | ||
.to_numeric <- function(x) { | ||
tryCatch(as.numeric(as.character(x)), | ||
error = function(e) x, | ||
warning = function(w) x | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters