Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support multiple messy bib files in tidy_bib_file() function #62

Open
jooyoungseo opened this issue Jan 23, 2020 · 2 comments
Open

Comments

@jooyoungseo
Copy link

Would you mind allowing multiple messy bib files for tidy_bib_file() function?

Let's say you have two bib files in your YAML:

bibliography: ["a.bib", "b.bib"]

I would like to create a tidy_references.bib file out of these two messy bib files.

So, I did the following; however, tidy_bib_file() function does not allow multiple messy bib files.

library(RefManageR)
citr::tidy_bib_file(
  rmd_file="test.Rmd"
  , messy_bibliography = c("a.bib", "b.bib")
  , file = "tidy_references.bib"
)
@crsh
Copy link
Owner

crsh commented Jan 24, 2020

Hi JooYoung,

I suppose this is possible, but I won't get around to implementing this any time soon (I'd be willing to review a PR, though). In priniciple, it should be easy to achieve this manually by tidying the bib-files separately and merging the text files using readLines() and, for example, cat(..., append = TRUE).

@ilsePit
Copy link
Contributor

ilsePit commented Dec 30, 2020

I thought this was a great idea, so I tried to write the solution, see this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants