Skip to content

Conversation

@njahn82
Copy link
Member

@njahn82 njahn82 commented Aug 2, 2025

Remove srcfile argument from bibtexas this has been deprecated

Description

Form bibtex maintainer via email:

Dear maintainer,

You have

parse_bibtex <- function(x) {
  chk4pk("bibtex")
  x <- gsub("@[Dd]ata", "@Misc", x)
  writeLines(x, "tmpscratch.bib")
  out <- bibtex::do_read_bib("tmpscratch.bib",
    srcfile = srcfile("tmpscratch.bib"))

but bibtex::do_read_bib() nowadays does

   if (!missing("srcfile")) {
        message("'srcfile' argument is deprecated.")
   }

so e.g.

R> bib <- rcrossref::cr_cn("10.32614/R.manuals", "bibentry")
'srcfile' argument is deprecated.

Perhaps you can get rid of that warning (perhaps not using srcfile
anymore, untested)?

Related Issue

Example

@njahn82 njahn82 merged commit 0c5a296 into main Aug 11, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants