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

citr not updating references.bib in subdirectory #51

Closed
IndrajeetPatil opened this issue Aug 3, 2019 · 3 comments
Closed

citr not updating references.bib in subdirectory #51

IndrajeetPatil opened this issue Aug 3, 2019 · 3 comments
Labels

Comments

@IndrajeetPatil
Copy link

IndrajeetPatil commented Aug 3, 2019

I am using citr to generate bibliography for my citations but my references.bib is neither getting regenerated (if I delete the existing copy) nor is it getting updated with the new citations I add.

This is the yaml for my RMarkdown:

---
title: "xyz"
author: x, y, z
date: "`r Sys.Date()`"
output: 
  html_document:
    toc: true
  pdf_document:
    toc: true
    keep_tex: true
    keep_md: true
  latex_engine: xelatex
header-includes: 
  - \usepackage{amsmath}
  - \usepackage{amssymb}
  - \usepackage{longtable}
  - \usepackage{booktabs}
  - \usepackage{amsfonts}
  - \usepackage{hyperref}
  - \usepackage{booktabs}
  - \usepackage[dvipsnames]{xcolor}
  - \usepackage{fontawesome}
bibliography: references.bib
csl: apa.csl
---

If it makes any difference, this is the citr settings I have:

image

The entire folder where the paper is located can be found here for more info, if needed:
https://github.com/IndrajeetPatil/ggstatsplot/tree/paper_draft_wip/paper

@crsh
Copy link
Owner

crsh commented Aug 5, 2019

Thanks for reporting this. Are you sure this is related to the output-format? From what I can tell that the problem seems to be that the Rmd is in a subdirectory. I've just pushed a fix that should address this. Could you try it out and see if that resolves the issue for you?

@IndrajeetPatil
Copy link
Author

That solved it! Thank you very much :)

@crsh crsh added the bug label Aug 5, 2019
@crsh crsh changed the title citr not updating references.bib for pdf_document citr not updating references.bib in subdirectory Aug 5, 2019
@crsh
Copy link
Owner

crsh commented Aug 6, 2019

Excellent, a release with this fix is on its way to CRAN.

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

No branches or pull requests

2 participants