Skip to content

Commit 2eeb415

Browse files
Just use format() for simplicity
1 parent 2eb5f1a commit 2eeb415

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/test.data.table.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,10 @@ test.data.table = function(script="tests.Rraw", verbose=FALSE, pkg=".", silent=F
225225
# does show the full file output these days, so the 13 line limit no longer bites so much. It still bit recently
226226
# when receiving output of R CMD check sent over email, though.
227227
tz = Sys.getenv("TZ", unset=NA)
228-
229-
maybe_unknown = function(x) if (length(x)) x else "<unknown>"
230228
cat("\n", date(), # so we can tell exactly when these tests ran on CRAN to double-check the result is up to date
231229
" endian==", .Platform$endian,
232-
", sizeof(long double)==", maybe_unknown(.Machine$sizeof.longdouble),
233-
", longdouble.digits==", maybe_unknown(.Machine$longdouble.digits), # 64 normally, 53 for example under valgrind where some high accuracy tests need turning off, #4639
230+
", sizeof(long double)==", format(.Machine$sizeof.longdouble),
231+
", longdouble.digits==", format(.Machine$longdouble.digits), # 64 normally, 53 for example under valgrind where some high accuracy tests need turning off, #4639
234232
", sizeof(pointer)==", .Machine$sizeof.pointer,
235233
", TZ==", if (is.na(tz)) "unset" else paste0("'",tz,"'"),
236234
", Sys.timezone()=='", suppressWarnings(Sys.timezone()), "'",

0 commit comments

Comments
 (0)