Skip to content
Discussion options

You must be logged in to vote

I think this is because JuliaCall R package does not handle the default output of markdown_table which is a Mime type outputing DisplayAs.Raw.Showable object.

JuliaCall is the package called by knitr when Julia chunk are used, and knitr handles the output based on the method defined by this tool.

You can make the above works with knitr by outputing a Markdown table as string and using output: asis

---
title: "Tables"
format: html
keep-md: true
engine: knitr
---

```{julia}
#| label: tbl-example
#| tbl-cap: Example
#| output: asis
using Markdown,Tables,MarkdownTables
data = ["A" 60; "B" 40; "C" 50];
# Some calculations (not important for this example)
result = [data; "Total" sum(data[1:end…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
5 replies
@gdietl
Comment options

@cderv
Comment options

Answer selected by gdietl
@gdietl
Comment options

@cderv
Comment options

@gdietl
Comment options

This comment was marked as off-topic.

@gdietl
Comment options

@gdietl
Comment options

@cderv
Comment options

This comment was marked as off-topic.

@agucova

This comment has been hidden.

@cderv

This comment has been hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants