Skip to content

Commit 48cb609

Browse files
Slightly more robust pull of .Machine entries (#6154)
* Slightly more robust pull of .Machine entries * Just use format() for simplicity * add capabilities, why not
1 parent 70a43bb commit 48cb609

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/test.data.table.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ test.data.table = function(script="tests.Rraw", verbose=FALSE, pkg=".", silent=F
229229
# notranslate start
230230
cat("\n", date(), # so we can tell exactly when these tests ran on CRAN to double-check the result is up to date
231231
" endian==", .Platform$endian,
232-
", sizeof(long double)==", .Machine$sizeof.longdouble,
233-
", longdouble.digits==", .Machine$longdouble.digits, # 64 normally, 53 for example under valgrind where some high accuracy tests need turning off, #4639
232+
", sizeof(long double)==", format(.Machine$sizeof.longdouble),
233+
", capabilities('long.double')==", capabilities('long.double'), # almost certainly overkill, but that's OK; see #6154
234+
", longdouble.digits==", format(.Machine$longdouble.digits), # 64 normally, 53 for example under valgrind where some high accuracy tests need turning off, #4639
234235
", sizeof(pointer)==", .Machine$sizeof.pointer,
235236
", TZ==", if (is.na(tz)) "unset" else paste0("'",tz,"'"),
236237
", Sys.timezone()=='", suppressWarnings(Sys.timezone()), "'",

0 commit comments

Comments
 (0)