-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datetime issue on one CRAN machine #2825
Labels
Milestone
Comments
do we know the locale on that machine?
…On Thu, May 3, 2018, 9:17 AM Matt Dowle ***@***.***> wrote:
Fail on one CRAN machine: r-release-linux-x86_64.
Tweet also here : https://twitter.com/MattDowle/status/991767160530731009
CRAN Log ``` using R version 3.5.0 Patched (2018-04-28 r74673) using
platform: x86_64-pc-linux-gnu (64-bit) using session charset: UTF-8
checking for file ‘data.table/DESCRIPTION’ ... OK this is package
‘data.table’ version ‘1.10.4-3’ checking package namespace information ...
OK checking package dependencies ... OK checking if this is a source
package ... OK checking if there is a namespace ... OK checking for
executable files ... OK checking for hidden files and directories ... OK
checking for portable file names ... OK checking for sufficient/correct
file permissions ... OK checking serialization versions ... OK checking
whether package ‘data.table’ can be installed ... OK checking package
directory ... OK checking ‘build’ directory ... OK checking DESCRIPTION
meta-information ... OK checking top-level files ... OK checking for
left-over files ... OK checking index information ... OK checking package
subdirectories ... OK checking R files for non-ASCII characters ... OK
checking R files for syntax errors ... OK checking whether the package can
be loaded ... OK checking whether the package can be loaded with stated
dependencies ... OK checking whether the package can be unloaded cleanly
... OK checking whether the namespace can be loaded with stated
dependencies ... OK checking whether the namespace can be unloaded cleanly
... OK checking loading without being on the library search path ... OK
checking use of S3 registration ... OK checking dependencies in R code ...
OK checking S3 generic/method consistency ... OK checking replacement
functions ... OK checking foreign function calls ... OK checking R code for
possible problems ... [23s/30s] OK checking Rd files ... OK checking Rd
metadata ... OK checking Rd line widths ... OK checking Rd cross-references
... OK checking for missing documentation entries ... OK checking for
code/documentation mismatches ... OK checking Rd \usage sections ... OK
checking Rd contents ... OK checking for unstated dependencies in examples
... OK checking line endings in C/C++/Fortran sources/headers ... OK
checking line endings in Makefiles ... OK checking compilation flags in
Makevars ... OK checking for GNU extensions in Makefiles ... OK checking
for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK checking include
directives in Makefiles ... OK checking pragmas in C/C++ headers and code
... OK checking compilation flags used ... OK checking compiled code ... OK
checking installed files from ‘inst/doc’ ... OK checking files in
‘vignettes’ ... OK checking examples ... ERROR Running examples in
‘data.table-Ex.R’ failed The error most likely occurred in:
base::assign(".ptime", proc.time(), pos = "CheckExEnv")
Name: IDateTime Title: Integer based date class Aliases: IDate as.IDate
ITime as.ITime IDateTime as.character.ITime as.chron.IDate as.chron.ITime
as.Date.IDate as.IDate.Date as.IDate.default as.ITime.character
as.ITime.default as.ITime.POSIXlt as.ITime.times as.list.IDate
as.POSIXct.IDate as.POSIXct.ITime as.POSIXlt.ITime c.IDate cut.IDate
format.ITime IDateTime.default mean.IDate print.ITime rep.IDate rep.ITime
round.IDate seq.IDate split.IDate second minute hour yday wday mday week
isoweek month quarter year IDate-class ITime-class Keywords: utilities
chron ** Examples create IDate:
(d <- as.IDate("2001-01-01"))
[1] "2001-01-01"
S4 coercion also works
identical(as.IDate("2001-01-01"), as("2001-01-01", "IDate"))
[1] TRUE
create ITime:
(t <- as.ITime("10:45"))
[1] "10:45:00"
S4 coercion also works
identical(as.ITime("10:45"), as("10:45", "ITime"))
[1] TRUE
(t <- as.ITime("10:45:04"))
[1] "10:45:04"
(t <- as.ITime("10:45:04", format = "%H:%M:%S"))
[1] "10:45:04"
as.POSIXct("2001-01-01") + as.ITime("10:45")
[1] "2001-01-01 10:45:00 CET"
datetime <- seq(as.POSIXct("2001-01-01"), as.POSIXct("2001-01-03"), by =
"5 hour")
(af <- data.table(IDateTime(datetime), a = rep(1:2, 5), key =
"a,idate,itime"))
idate itime a
1: 2001-01-01 00:00:00 1
2: 2001-01-01 10:00:00 1
3: 2001-01-01 20:00:00 1
4: 2001-01-02 06:00:00 1
5: 2001-01-02 16:00:00 1
6: 2001-01-01 05:00:00 2
7: 2001-01-01 15:00:00 2
8: 2001-01-02 01:00:00 2
9: 2001-01-02 11:00:00 2
10: 2001-01-02 21:00:00 2
af[, mean(a), by = "itime"]
itime V1
1: 00:00:00 1
2: 10:00:00 1
3: 20:00:00 1
4: 06:00:00 1
5: 16:00:00 1
6: 05:00:00 2
7: 15:00:00 2
8: 01:00:00 2
9: 11:00:00 2
10: 21:00:00 2
af[, mean(a), by = list(hour = hour(itime))]
hour V1
1: 0 1
2: 10 1
3: 20 1
4: 6 1
5: 16 1
6: 5 2
7: 15 2
8: 1 2
9: 11 2
10: 21 2
af[, mean(a), by = list(wday = factor(weekdays(idate)))]
wday V1
1: Monday 1.4
2: Tuesday 1.6
af[, mean(a), by = list(wday = wday(idate))]
wday V1
1: 2 1.4
2: 3 1.6
as.POSIXct(af$idate)
[1] "2001-01-01 UTC" "2001-01-01 UTC" "2001-01-01 UTC" "2001-01-02 UTC"
[5] "2001-01-02 UTC" "2001-01-01 UTC" "2001-01-01 UTC" "2001-01-02 UTC"
[9] "2001-01-02 UTC" "2001-01-02 UTC"
as.POSIXct(af$idate, time = af$itime)
[1] "2001-01-01 00:00:00 UTC" "2001-01-01 10:00:00 UTC"
[3] "2001-01-01 20:00:00 UTC" "2001-01-02 06:00:00 UTC"
[5] "2001-01-02 16:00:00 UTC" "2001-01-01 05:00:00 UTC"
[7] "2001-01-01 15:00:00 UTC" "2001-01-02 01:00:00 UTC"
[9] "2001-01-02 11:00:00 UTC" "2001-01-02 21:00:00 UTC"
as.POSIXct(af$idate, af$itime)
[1] "2001-01-01 00:00:00 UTC" "2001-01-01 10:00:00 UTC"
[3] "2001-01-01 20:00:00 UTC" "2001-01-02 06:00:00 UTC"
[5] "2001-01-02 16:00:00 UTC" "2001-01-01 05:00:00 UTC"
[7] "2001-01-01 15:00:00 UTC" "2001-01-02 01:00:00 UTC"
[9] "2001-01-02 11:00:00 UTC" "2001-01-02 21:00:00 UTC"
as.POSIXct(af$idate, time = af$itime, tz = "GMT")
[1] "2001-01-01 00:00:00 GMT" "2001-01-01 10:00:00 GMT"
[3] "2001-01-01 20:00:00 GMT" "2001-01-02 06:00:00 GMT"
[5] "2001-01-02 16:00:00 GMT" "2001-01-01 05:00:00 GMT"
[7] "2001-01-01 15:00:00 GMT" "2001-01-02 01:00:00 GMT"
[9] "2001-01-02 11:00:00 GMT" "2001-01-02 21:00:00 GMT"
as.POSIXct(af$itime, af$idate)
[1] "2001-01-01 00:00:00 UTC" "2001-01-01 10:00:00 UTC"
[3] "2001-01-01 20:00:00 UTC" "2001-01-02 06:00:00 UTC"
[5] "2001-01-02 16:00:00 UTC" "2001-01-01 05:00:00 UTC"
[7] "2001-01-01 15:00:00 UTC" "2001-01-02 01:00:00 UTC"
[9] "2001-01-02 11:00:00 UTC" "2001-01-02 21:00:00 UTC"
as.POSIXct(af$itime) # uses today's date
[1] "2018-05-01 00:00:00 UTC" "2018-05-01 10:00:00 UTC"
[3] "2018-05-01 20:00:00 UTC" "2018-05-01 06:00:00 UTC"
[5] "2018-05-01 16:00:00 UTC" "2018-05-01 05:00:00 UTC"
[7] "2018-05-01 15:00:00 UTC" "2018-05-01 01:00:00 UTC"
[9] "2018-05-01 11:00:00 UTC" "2018-05-01 21:00:00 UTC"
(seqdates <- seq(as.IDate("2001-01-01"), as.IDate("2001-08-03"), by = "3
weeks"))
[1] "2001-01-01" "2001-01-22" "2001-02-12" "2001-03-05" "2001-03-26"
[6] "2001-04-16" "2001-05-07" "2001-05-28" "2001-06-18" "2001-07-09"
[11] "2001-07-30"
round(seqdates, "months")
[1] "2001-01-01" "2001-01-01" "2001-02-01" "2001-03-01" "2001-03-01"
[6] "2001-04-01" "2001-05-01" "2001-05-01" "2001-06-01" "2001-07-01"
[11] "2001-07-01"
if (require(chron)) {
-
as.chron(as.IDate("2000-01-01"))
-
as.chron(as.ITime("10:45"))
-
as.chron(as.IDate("2000-01-01"), as.ITime("10:45"))
-
as.chron(as.ITime("10:45"), as.IDate("2000-01-01"))
-
as.ITime(chron(times = "11:01:01"))
-
IDateTime(chron("12/31/98","10:45:00"))
-
}
Loading required package: chron
Error in strptime(x, format, tz = tz) : invalid 'x' argument
Calls: as.chron ... as.POSIXct -> as.POSIXlt -> as.POSIXlt.character
-> strptime
Execution halted
checking for unstated dependencies in ‘tests’ ... OK
checking tests ... [155s/192s] ERROR
Running ‘autoprint.R’ [0s/1s]
Comparing ‘autoprint.Rout’ to ‘autoprint.Rout.save’ ... OK
Running ‘knitr.R’ [1s/1s]
Comparing ‘knitr.Rout’ to ‘knitr.Rout.save’ ... OK
Running ‘main.R’ [153s/189s]
Running the tests in ‘tests/main.R’ failed.
Complete output:
require(data.table)
Loading required package: data.table
test.data.table() # runs the main test suite of 5,000+ tests in
/inst/tests/tests.Rraw
Running
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/data.table/tests/tests.Rraw
Loading required package: bit64
Loading required package: bit
Attaching package bit
package:bit (c) 2008-2012 Jens Oehlschlaegel (GPL-2)
creators: bit bitwhich
coercion: as.logical as.integer as.bit as.bitwhich which
operator: ! & | xor != ==
querying: print length any all min max range sum summary
bit access: length<- [ [<- [[ [[<-
for more help type ?bit
Attaching package: 'bit'
The following object is masked from 'package:data.table':
setattr
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2012 Jens Oehlschlaegel
creators: integer64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double
as.character as.bin
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following object is masked from 'package:bit':
still.identical
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Loading required package: knitr
Loading required package: nanotime
Loading required package: chron
Loading required package: ggplot2
Loading required package: plyr
Loading required package: reshape
Attaching package: 'reshape'
The following objects are masked from 'package:plyr':
rename, round_any
The following object is masked from 'package:data.table':
melt
Loading required package: reshape2
Attaching package: 'reshape2'
The following objects are masked from 'package:reshape':
colsplit, melt, recast
The following objects are masked from 'package:data.table':
dcast, melt
Loading required package: testthat
Loading required package: hexbin
Loading required package: fastmatch
Loading required package: nlme
Loading required package: GenomicRanges
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:bit64':
match, order, rank
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following objects are masked from 'package:reshape':
expand, rename
The following object is masked from 'package:plyr':
rename
The following objects are masked from 'package:data.table':
first, second
The following object is masked from 'package:base':
expand.grid
Loading required package: IRanges
Attaching package: 'IRanges'
The following object is masked from 'package:nlme':
collapse
The following object is masked from 'package:plyr':
desc
The following object is masked from 'package:data.table':
shift
Loading required package: GenomeInfoDb
Loading required package: xts
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Attaching package: 'xts'
The following object is masked from 'package:S4Vectors':
first
The following objects are masked from 'package:data.table':
first, last
Loading required package: gdata
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
Attaching package: 'gdata'
The following objects are masked from 'package:xts':
first, last
The following object is masked from 'package:GenomicRanges':
trim
The following object is masked from 'package:IRanges':
trim
The following objects are masked from 'package:S4Vectors':
first, first<-
The following object is masked from 'package:BiocGenerics':
combine
The following object is masked from 'package:stats4':
nobs
The following objects are masked from 'package:data.table':
first, last
The following object is masked from 'package:stats':
nobs
The following object is masked from 'package:utils':
object.size
The following object is masked from 'package:base':
startsWith
Loading required package: caret
Loading required package: lattice
Loading required package: curl
Loading required package: plm
Loading required package: Formula
Attaching package: 'plm'
The following object is masked from 'package:data.table':
between
Loading required package: rmarkdown
Attaching package: 'reshape2'
The following objects are masked *by* 'package:data.table':
dcast, melt
Attaching package: 'reshape'
The following objects are masked *by* 'package:S4Vectors':
expand, rename
The following objects are masked *by* 'package:plyr':
rename, round_any
The following object is masked *by* 'package:data.table':
melt
The following objects are masked *by* 'package:reshape2':
colsplit, melt, recast
Test 167 Error in (function (file = if (onefile) "Rplots.pdf" else
"Rplot%03d.pdf", :
cannot open file 'Rplots.pdf'
Test 167.1 Error in (function (file = if (onefile) "Rplots.pdf" else
"Rplot%03d.pdf", :
cannot open file 'Rplots.pdf'
Test 167.2 Error in (function (file = if (onefile) "Rplots.pdf" else
"Rplot%03d.pdf", :
cannot open file 'Rplots.pdf'
Test 168 Error in (function (file = if (onefile) "Rplots.pdf" else
"Rplot%03d.pdf", :
cannot open file 'Rplots.pdf'
Test 168.1 Error in (function (file = if (onefile) "Rplots.pdf" else
"Rplot%03d.pdf", :
cannot open file 'Rplots.pdf'
Test 1373 ran without errors but failed check that x equals y:
x = grepl("NAM\(1\)", out)
[1] FALSE
y = TRUE
[1] TRUE
1 element mismatch
Test 1543.3 ran without errors but failed check that x equals y:
x = ans1
A X total.x A.y total.y
1 e 3 TRUE 9 FALSE
2 f 8 TRUE 2 FALSE
3 g 4 TRUE 1 FALSE
4 h 6 TRUE 8 FALSE
5 i 7 TRUE 5 FALSE
6 j 9 TRUE 3 FALSE
y = ans2
A X total.x A total.y
1 e 3 TRUE 9 FALSE
2 f 8 TRUE 2 FALSE
3 g 4 TRUE 1 FALSE
4 h 6 TRUE 8 FALSE
5 i 7 TRUE 5 FALSE
6 j 9 TRUE 3 FALSE
Running test id 1696
Error in eval(exprs[i], envir) :
7 errors out of 5946 (lastID=1751, endian==little, sizeof(long
double)==16, sizeof(pointer)==8) in inst/tests/tests.Rraw on Tue May 1
19:30:25 2018. Search tests.Rraw for test numbers: 167, 167.1, 167.2, 168,
168.1, 1373, 1543.3.
Calls: test.data.table -> sys.source -> eval -> eval
Execution halted
checking for unstated dependencies in vignettes ... OK
checking package vignettes in ‘inst/doc’ ... OK
checking re-building of vignette outputs ... [22s/27s] OK
checking PDF version of manual ... OK
DONE
Status: 2 ERRORs
</detail>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2825>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQQdX7zAo0gTXi4keRL57yfn3bf0IdZks5tulrFgaJpZM4TwYHb>
.
|
Part of the log referred to an old error, see line in out
|
CRAN log has updated now with 1.11.0 results. 1 error remains so reopening. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fail on one CRAN machine: r-release-linux-x86_64.
Tweet also here : https://twitter.com/MattDowle/status/991767160530731009
CRAN Log
The text was updated successfully, but these errors were encountered: