I am trying to generate a table of org citations with the following R source block (emacs 28.1, org 9.5.3)
#+name: test-citation-table
#+BEGIN_SRC R :results replace :colnames yes
data.frame(Reference = paste0("[cite:@", c("ref2022", "", "example1985"), "]")
, Url = "example.com")
#+END_SRC
For some reason org citations does not show and I get this
#+RESULTS: test-citation-table
| | example.com |
| [cite:@] | example.com |
| | example.com |
Whereas I would expect this
#+RESULTS: test-citation-table
| [cite:@ref2022] | example.com |
| [cite:@] | example.com |
| [cite:@example1985] | example.com |
Strangely, org-ref
type of links works as expected:
#+name: test-citation-table
#+BEGIN_SRC R :results replace :colnames yes
data.frame(Reference = paste0("cite:@", c("ref2022", "", "example1985"))
, Url = "example.com")
#+END_SRC
#+RESULTS: test-citation-table
| Reference | Url |
|-------------------+-------------|
| cite:@ref2022 | example.com |
| cite:@ | example.com |
| cite:@example1985 | example.com |
Does anyone else have such an issue? I do not know if this a bug or expected behavior? If so maybe someone knows a workaround?