line / conflr

Post R Markdown documents to Confluence
https://line.github.io/conflr/
GNU General Public License v3.0
130 stars 28 forks source link

Error rendering macro 'code' #149

Open datapixie opened 2 years ago

datapixie commented 2 years ago

I'm having trouble with code chunks not being rendered (regardless of the code_folding setting). The code chunks never show up, and in some cases I see the error

Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'

For example the following Rmd :

## R Markdown

```{r cars}
summary(cars)

plot(pressure)
'''

is rendered on Confluence as

Screen Shot 2022-03-03 at 3 35 17 PM

Not sure if this matters, but I'm not on Confluence cloud, I'm on my company's internal confluence site. Is it possible my code macro is out of date or something?

yutannihilation commented 2 years ago

Not sure if this matters, but I'm not on Confluence cloud, I'm on my company's internal confluence site. Is it possible my code macro is out of date or something?

conflr specifies the parameter language and collapse, and there's a chance that some version of Confluence doesn't accept language parameter (collapse is not specified unless code_folding is set "hide", so it should not matter here), but I have no idea... FWIW, I use the on-premise version of Confluence without errors.

https://github.com/line/conflr/blob/3bd5533d4da044c89c5b58af7095d8f517461341/R/translate.R#L153-L164