On 2024-03-06 23:10, Paul Stansell wrote:
> #+name: data
> |--------+--------|
> |      x |      y |
> |--------+--------|
> | 111.89 |  88.37 |
> | 392.12 | 297.33 |
> |--------+--------|
> 
> --8<--
> 
> However, using both ":colnames yes" and ":var d=data" together gives
> an error "Wrong type argument: sequencep, hline"
> 
> #+begin_src R --no-save --no-restore :colnames yes :var d=data
>   data.frame(x=1, y=2)
> #+end_src

On 2024-03-07 19:05, Ihor Radchenko wrote:
> While not a bug, the situation can certainly be improved.
> Things should be a bit smarter on main after
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cab81f242

Result on main:
>> #+begin_src R --no-save --no-restore :colnames yes :var d=data
>>   data.frame(x=1, y=2)
>> #+end_src
>> 
>> #+RESULTS:
>> | x | y |
>> |---+---|
>> | 1 | 2 |

Fixed, by ‘cab81f242’ on main (for our bug tracker).

Thanks,

-- 
Jacob S. Gordon
[email protected]
Please don’t send me HTML emails or MS Office/Apple iWork documents.
https://useplaintext.email/#etiquette
https://www.fsf.org/campaigns/opendocument

Reply via email to