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

Relative path to bibliography does not work #34

Closed
WillemSleegers opened this issue Sep 27, 2018 · 5 comments
Closed

Relative path to bibliography does not work #34

WillemSleegers opened this issue Sep 27, 2018 · 5 comments

Comments

@WillemSleegers
Copy link

When I specify a relative path to a .bib file, it doesn't work.

This works:
bibliography: library.bib

This does not work:
bibliography: ../../static/bib/library.bib

I do not get an error message, but it simply does not produce the citations. An illustration of this can be seen here: https://rstudio.github.io/radix/basics.html#citations. The citation there does not show, although it does show here: https://rstudio.github.io/radix/citations.html

@jjallaire
Copy link
Member

The example you cite was actually not caused by a relative path, but rather the absence of a bibliography entry in the basics.Rmd file. That's now been fixed.

I'll look into the other issue and report back soon.

@jjallaire
Copy link
Member

I'm unable to reproduce the problem with relative paths in bibliography (for me the bibliography is found and the citations displayed). Could you provide a minimal reproducible example of code that's failing for you as well as let me know the results of sessionInfo() on your system.

@WillemSleegers
Copy link
Author

WillemSleegers commented Sep 28, 2018

I tried reproducing it with a stand-alone Radix article, but there it works. However, I'm using it in the context of a blog, and there it seems to go wrong.

I'm working on seeing whether I can make a reproducible example.

@WillemSleegers
Copy link
Author

Update: I think my problem was that I had no build the website yet, and that's why it went wrong!

I think this issue can be closed now.

@jjallaire
Copy link
Member

Thanks for the reprex! It should still work when you haven't yet built the site so that is in fact a bug. Should be fixed here: rstudio/radix@47db5c4

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

No branches or pull requests

2 participants