Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
73cb5bf
new coercion methods and consistency for existing ones
hcirellu Nov 13, 2025
1727c1a
new coercion methods and consistency for existing ones
hcirellu Nov 13, 2025
a4ce87d
Merge branch 'new_coercion_methods' of https://github.com/hcirellu/bi…
hcirellu Nov 13, 2025
79f2a87
styling
hcirellu Nov 13, 2025
d4d833c
comment subtle reason for catching warnings
MichaelChirico Nov 13, 2025
55d2c43
changed man and moved tests to own section for R>=4.0.0
hcirellu Nov 13, 2025
2916c8c
as.data.frame coercion
hcirellu Nov 14, 2025
98bd8fc
drop new keep.names support
MichaelChirico Nov 14, 2025
e1e2986
Merge pull request #1 from MichaelChirico/patch-1
hcirellu Dec 30, 2025
55ebfd1
Merge branch 'main' into new_coercion_methods
hcirellu Jan 3, 2026
c87c4b8
skip_unless_r
hcirellu Jan 3, 2026
667f652
Remove `keep.names` in code and doc.
hcirellu Jan 3, 2026
cd68c3f
trigger checks
hcirellu Jan 3, 2026
34be3dc
try to see output
hcirellu Jan 3, 2026
e734ed0
trigger checks
hcirellu Jan 3, 2026
dbefbc7
try to see output
hcirellu Jan 3, 2026
badd634
debugging
hcirellu Jan 3, 2026
88c7a5d
debug
hcirellu Jan 3, 2026
e9a5093
debug
hcirellu Jan 3, 2026
f6cf2e4
debug
hcirellu Jan 3, 2026
754e488
debug
hcirellu Jan 3, 2026
8f007c2
exclude test for as.raw.integer64 for R < 4.0.0
hcirellu Jan 3, 2026
a4eeead
exclude test for S4 method as "complex" for R < 4.0.0
hcirellu Jan 3, 2026
a3f962c
exclude test for as.complex.integer64 for R < 4.0.0
hcirellu Jan 3, 2026
8f14e50
exclude test for as.raw.integer64 for R < 4.0.0
hcirellu Jan 3, 2026
e005a62
exclude test for S4 method as "complex" for R < 4.0.0
hcirellu Jan 3, 2026
8a5af93
Merge branch 'main' into new_coercion_methods
hcirellu Jan 5, 2026
ab4b503
Merge branch 'main' into new_coercion_methods
MichaelChirico Jan 5, 2026
fb2ee39
move 4.0.0 tests to their own unit
MichaelChirico Jan 6, 2026
ae4fb49
separate warning test from equality test
MichaelChirico Jan 6, 2026
0eb4a05
separate as.integer64() and as() tests
MichaelChirico Jan 6, 2026
0699c0c
Add '.0' to make double literals more obvious, remove duplicate tests
MichaelChirico Jan 6, 2026
24b1554
Further split from/to coercion cases
MichaelChirico Jan 6, 2026
db8e396
move getRversion() tests into appropriate unit
MichaelChirico Jan 6, 2026
b6a0b01
segregate tests into simpler sets
MichaelChirico Jan 6, 2026
8ac0843
separate factor/time cases, re-use i64 more
MichaelChirico Jan 6, 2026
419b614
typo tpes->types
MichaelChirico Jan 6, 2026
8936883
missing '"'
MichaelChirico Jan 6, 2026
b9c1abd
re-use difftime(...)
MichaelChirico Jan 6, 2026
2f6dc2b
missed other renames of p->posixct; whitespace
MichaelChirico Jan 6, 2026
b2c8cdc
ws, simplify complex example
MichaelChirico Jan 6, 2026
7baebd2
reorganize again around reusable 'posixct'
MichaelChirico Jan 6, 2026
f55ab07
expand NEWS, be sure to mention 'complex' and cite author+closed issue
MichaelChirico Jan 6, 2026
f8a1dd9
fix over-aggressive change to 'i64'
MichaelChirico Jan 6, 2026
49c858c
fix bad wording
MichaelChirico Jan 6, 2026
fbbf632
Merge branch 'main' into new_coercion_methods
MichaelChirico Jan 6, 2026
1c677ff
Avoid callGeneric in S3 methods
MichaelChirico Jan 6, 2026
fc1b3fa
pass other arguments
MichaelChirico Jan 6, 2026
d6d2025
Use patch64 approach for base S3 generic overwrite
MichaelChirico Jan 6, 2026
7fdfc01
correspondingly update NEWS
MichaelChirico Jan 6, 2026
56fe372
missed two '<-' in merge; restore passing args in as.data.frame()
MichaelChirico Jan 6, 2026
0f8e690
remove as.difftime, but keep in tests
hcirellu Jan 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,33 @@ S3method(aperm,integer64)
S3method(as.bitstring,integer64)
S3method(as.character,integer64)
S3method(as.data.frame,integer64)
S3method(as.difftime,default)
S3method(as.difftime,integer64)
S3method(as.double,integer64)
S3method(as.integer,integer64)
S3method(as.integer64,"NULL")
S3method(as.integer64,Date)
S3method(as.integer64,POSIXct)
S3method(as.integer64,POSIXlt)
S3method(as.integer64,bitstring)
S3method(as.integer64,character)
S3method(as.integer64,complex)
S3method(as.integer64,difftime)
S3method(as.integer64,double)
S3method(as.integer64,factor)
S3method(as.integer64,integer)
S3method(as.integer64,integer64)
S3method(as.integer64,logical)
S3method(as.integer64,raw)
S3method(as.list,integer64)
S3method(as.logical,integer64)
S3method(base::anyNA,integer64)
S3method(base::as.Date,integer64)
S3method(base::as.POSIXct,integer64)
S3method(base::as.POSIXlt,integer64)
S3method(base::as.complex,integer64)
S3method(base::as.numeric,integer64)
S3method(base::as.raw,integer64)
S3method(c,integer64)
S3method(cbind,integer64)
S3method(ceiling,integer64)
Expand Down Expand Up @@ -185,6 +199,7 @@ export(as.bitstring)
export(as.bitstring.integer64)
export(as.character.integer64)
export(as.data.frame.integer64)
export(as.difftime)
export(as.double.integer64)
export(as.integer.integer64)
export(as.integer64)
Expand Down Expand Up @@ -399,6 +414,7 @@ importFrom(graphics,barplot)
importFrom(graphics,par)
importFrom(graphics,title)
importFrom(methods,as)
importFrom(methods,callGeneric)
importFrom(methods,is)
importFrom(stats,cor)
importFrom(stats,median)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
## NEW FEATURES

1. `anyNA` gets an `integer64` method. Thanks @hcirellu.
1. `as.Date`, `as.POSIXct`, `as.POSXlt`, `as.raw`, `as.difftime` get an `integer64` method.
1. `as.integer64` gets `Date`, `POSIXct`, `POSXlt`, `raw`, `difftime` methods.

## BUG FIXES

Expand Down
2 changes: 1 addition & 1 deletion R/bit64-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@
#' ramsort ramsortorder repeat.time setattr shellorder shellsort
#' shellsortorder still.identical xor
#' @importFrom graphics barplot par title
#' @importFrom methods as is
#' @importFrom methods as is callGeneric
#' @importFrom stats cor median quantile
#' @importFrom utils head packageDescription strOptions tail
#' @export : :.default :.integer64
Expand Down
Loading