-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Downgrade {rio} to Suggests from Imports
* {rio} may be "archived" on CRAN... * The R packgae `{rio}` has been downgraded from "Imports" to "Suggests". Users who want to use `rio::import()` or `rio::convert()` will need to manually install `{rio}`. * Register S3 methods for {rio} in `.onLoad()` instead of NAMESPACE
- Loading branch information
Showing
8 changed files
with
55 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
Package: ledger | ||
Type: Package | ||
Title: Utilities for Importing Data from Plain Text Accounting Files | ||
Version: 2.0.8 | ||
Version: 2.0.9 | ||
Authors@R: c(person("Trevor L", "Davis", role = c("aut", "cre"), email="trevor.l.davis@gmail.com"), | ||
person("Jenya", "Sovetkin", role="ctb"), | ||
person("Chris", "Lloyd", role="ctb")) | ||
URL: https://github.com/trevorld/r-ledger, https://trevorldavis.com/R/ledger | ||
BugReports: https://github.com/trevorld/r-ledger/issues | ||
Description: Utilities for querying plain text accounting files from 'Ledger', 'HLedger', and 'Beancount'. | ||
Imports: | ||
dplyr (>= 0.7.0), rio, rlang, stringr, tidyr (>= 0.7.0), tibble, tidyselect, tools | ||
dplyr (>= 0.7.0), | ||
rlang, | ||
stringr, | ||
tidyr (>= 0.7.0), | ||
tibble, | ||
tidyselect, | ||
tools | ||
Suggests: | ||
rio, | ||
testthat | ||
SystemRequirements: ledger (>= 3.1), hledger (>= 1.2), beancount (>= 2.0) | ||
License: MIT + file LICENSE | ||
RoxygenNote: 7.1.0 | ||
RoxygenNote: 7.1.2 | ||
Encoding: UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.import.rio_beancount <- register # nolint | ||
.import.rio_bean <- register # nolint | ||
.import.rio_ledger <- register # nolint | ||
.import.rio_hledger <- register # nolint | ||
|
||
.onLoad <- function(...) { | ||
register_s3_method("rio", ".import", "rio_beancount") | ||
register_s3_method("rio", ".import", "rio_bean") | ||
register_s3_method("rio", ".import", "rio_hledger") | ||
register_s3_method("rio", ".import", "rio_ledger") | ||
|
||
invisible(NULL) | ||
} | ||
|
||
register_s3_method <- function(pkg, generic, class) { | ||
fun <- get(paste0(generic, ".", class), envir = parent.frame()) | ||
if (requireNamespace(pkg, quietly = TRUE)) | ||
registerS3method(generic, class, fun, envir = asNamespace(pkg)) | ||
invisible(NULL) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters