a quick converter for bbl/tex to bib
Examples
test_file <- system.file("standalone/test.bbl", package = "rebib")
dir.create(your_article_folder <- file.path(tempdir(), "testdir"))
file.copy(test_file, your_article_folder)
#> [1] TRUE
your_article_path <- xfun::normalize_path(paste(your_article_folder,"test.bbl",sep="/"))
rebib::biblio_converter(file_path = your_article_path)
#> working directory : /private/var/folders/t_/mmhnh941511_hp2lwh383bp00000gn/T/Rtmpug0hYf/testdir
#> bib entries : 8
#> Written BibTeX file : /private/var/folders/t_/mmhnh941511_hp2lwh383bp00000gn/T/Rtmpug0hYf/testdir/test.bib
head(readLines(xfun::with_ext(your_article_path,"bib")))
#> [1] "@book{montes96,"
#> [2] "author = {M.J.~{Montes}},"
#> [3] "title = {{Butcher's Algorithm for Calculating the Date of Easter in}},"
#> [4] "publisher = {the Gregorian Calendar},"
#> [5] "year = {1996}"
#> [6] "}"
unlink(your_article_folder,recursive = TRUE)