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

bbt_library_id() gets a row number, not the id value of the library #46

Open
stepanpaulik opened this issue Nov 12, 2023 · 1 comment
Open

Comments

@stepanpaulik
Copy link

stepanpaulik commented Nov 12, 2023

Hello all,

I am trying to write a collaborative RMarkdown article. To do that, we have setup a group library. When I queue the bbt_libraries() function, it returns two libraries with IDs 1 (the local one) and 4 (the group one). However, when I use the "bbt_library_id(name_of_the_library)" function in the library_id argument of bbt_write_bib() function in the YAML header, the function returns 2, the row number of the group library rather than its ID. It means that the library ID has to be hard coded instead and makes the collaborative work more difficult.

image

The workaround is to call the functioning bbt_libraries() with the call rbbt::bbt_libraries()$id[rbbt::bbt_libraries()$name == 'name_of_the_library']

Thank you for the resolution!

@heike
Copy link
Contributor

heike commented Nov 10, 2024

fixed in pull request #50

paleolimbot added a commit that referenced this issue Nov 12, 2024
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