Skip to content

Commit

Permalink
Merge pull request #57 from r-lib/dep-imp
Browse files Browse the repository at this point in the history
Move default packages to Imports
  • Loading branch information
MichaelChirico authored Oct 10, 2024
2 parents ec39033 + 7064931 commit f9d1ef3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
^\.lintr
^\.*\.Rproj$
^\.Rproj\.user$
^\.devcontainer$
README.md
^codecov\.yml$
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Authors@R: c(
person("Leonardo", "Silvestri", role = "ctb"),
person("Ofek", "Shilon", role = "ctb")
)
Depends: R (>= 3.3.0), bit (>= 4.0.0), utils, methods, stats
Depends: R (>= 3.3.0), bit (>= 4.0.0)
Description:
Package 'bit64' provides serializable S3 atomic 64bit (signed) integers.
These are useful for handling database keys and exact counting in +-2^63.
Expand All @@ -24,6 +24,7 @@ LazyLoad: yes
ByteCompile: yes
URL: https://github.com/r-lib/bit64
Encoding: UTF-8
Imports: graphics, methods, stats, utils
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@

1. The R version dependency has increased from 3.0.1 (May 2013) to 3.3.0 (April 2017). We plan to keep roughly the same R dependency as {data.table}, i.e., as old as possibly for as long as possible, with some bias towards gradually bringing in new R features to reduce the maintenance overhead of a growing nest of workarounds to keep the package "fresh" for users of the latest R versions.

1. Default packages {methods}, {stats}, and {utils} are now `Imports:`, not `Depends:`, dependencies. `Depends:` is an out-dated mode of dependency in R. This will only affect the small audience of users that run R with `R_DEFAULT_PACKAGES=NULL` (or some other subset excluding some of these three), _and_ who are relying (perhaps implicitly) on {bit64} being responsible for attaching those packages.

It is my intention to move {bit} from `Depends:` to `Imports:` as well, but this migration will be done more gingerly -- it is more conceivable that this will constitute a breaking change for some use cases, therefore it will be done in phases. Nothing is done in this release, but here is your earliest warning that from the next release, it will be a warning to rely on {bit64} to attach {bit} functions for you.

# bit64 NEWS for versions 0.8-3 through 4.5.2 are now in [NEWS.0](https://github.com/r-lib/bit64/blob/master/NEWS.0)

0 comments on commit f9d1ef3

Please sign in to comment.