Skip to content

Commit

Permalink
Start the review of the person conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Feb 28, 2024
1 parent 364a9f5 commit 44dc4d4
Show file tree
Hide file tree
Showing 17 changed files with 566 additions and 13 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ License: GPL (>= 3)
URL: https://docs.ropensci.org/cffr/, https://github.com/ropensci/cffr
BugReports: https://github.com/ropensci/cffr/issues
Depends:
R (>= 3.6.0)
R (>= 4.0.0)
Imports:
cli (>= 2.0.0),
desc (>= 1.3.0),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ S3method(toBibtex,cff)
export(as.cff)
export(cff)
export(cff_create)
export(cff_create_person)
export(cff_extract_to_bibtex)
export(cff_from_bibtex)
export(cff_gha_update)
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ modified:
- `head.cff()`, `tail.cff()`.
- `toBibtex.cff()`.

## Changes on BibTeX crosswalk
## Other changes

- Minimum **R** version required now is **4.0.0**.

### BibTeX crosswalk

- **\@inbook** and **\@book** gains a new value on [CFF]{.underline} when
**series** is provided: [collection-type: book-series.]{.underline}
Expand Down
4 changes: 4 additions & 0 deletions R/cff-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ tail.cff <- function(x, n = 6L, ...) {
#'
#' @param object `cff` object.
#' @param ... Arguments passed to [utils::toBibtex()].
#'
#' @return
#'
#' `toBibtex.cff()` returns a `Bibtex` object.
toBibtex.cff <- function(object, ...,
what = c("preferred", "references", "all")) {
# If a single reference...
Expand Down
Loading

0 comments on commit 44dc4d4

Please sign in to comment.