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 when uploading to Confluence #133

Closed stephwen-tempus closed 2 years ago

stephwen-tempus commented 2 years ago

Hi,

I get the following errors either when Knitting to confluence_document or when using the add-in command "Post to Confluence":

With the Post to Confluence command:

> conflr:::confl_create_post_from_Rmd_addin()

processing file: xxxxxxx.Rmd
  |...............................                                                               |  33%
  ordinary text without R code

  |...............................................................                               |  67%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |..............................................................................................| 100%
  ordinary text without R code

output file: xxxxxxx.knit.md

/usr/lib/rstudio-server/bin/pandoc/pandoc +RTS -K512m -RTS intro_tacos_efs.utf8.md --to commonmark --from markdown+autolink_bare_uris-tex_math_single_backslash-tex_math_dollars-raw_tex --output intro_tacos_efs.md --standalone --wrap=none 
Loading required package: shiny

Listening on http://127.0.0.1:7164
Warning: Error in read_xml.raw: Specification mandates value for attribute id [41]
  56: read_xml.raw
  55: read_xml.character
  53: translate_to_confl_macro
  52: confl_upload
  51: <observer>
   8: shiny::runApp
   7: shiny::runGadget
   6: <Anonymous>
   4: output_format$post_processor
   3: rmarkdown::render
   2: confl_create_post_from_Rmd
   1: conflr:::confl_create_post_from_Rmd_addin
Warning message:
In grSoftVersion() :
  unable to load shared object '/usr/local/lib/R/modules//R_X11.so':
  libXt.so.6: cannot open shared object file: No such file or directory

When knitting:

  |.......................                                               |  33%
  ordinary text without R code

  |...............................................                       |  67%
label: setup (with options) 
List of 1
 $ include: logi FALSE

processing file: xxxxxx.Rmd
  |......................................................................| 100%
  ordinary text without R code

/usr/lib/rstudio-server/bin/pandoc/pandoc +RTS -K512m -RTS xxxxxx.utf8.md --to commonmark --from markdown+autolink_bare_uris-tex_math_single_backslash-tex_math_dollars-raw_tex --output xxxxxx.md --standalone --wrap=none 
output file: xxxxxx.knit.md

Checking the existing images...
Uploading the images...
Uploading the document...
Error in read_xml.raw(charToRaw(enc2utf8(x)), "UTF-8", ..., as_html = as_html,  : 
  Specification mandates value for attribute id [41]
Calls: <Anonymous> ... translate_to_confl_macro -> <Anonymous> -> read_xml.character -> read_xml.raw
In addition: Warning message:
In grSoftVersion() :
  unable to load shared object '/usr/local/lib/R/modules//R_X11.so':
  libXt.so.6: cannot open shared object file: No such file or directory
Execution halted
dpprdan commented 2 years ago

@stephwen-tempus any idea where the grSoftVersion() warning comes from? I am getting this as well with a rocker/tidyverse docker image.

Warning message:
In grSoftVersion() :
  unable to load shared object '/usr/local/lib/R/modules//R_X11.so':
  libXt.so.6: cannot open shared object file: No such file or directory
slockton commented 2 years ago

I am getting this identical error...

output file: test1.knit.md

/usr/lib/rstudio-server/bin/quarto/bin/pandoc +RTS -K512m -RTS test1.knit.md --to commonmark-yaml_metadata_block --from markdown+autolink_bare_uris-tex_math_single_backslash-tex_math_dollars-raw_tex --output test1.md --wrap=none 
Checking the existing images...
Uploading the images...
Uploading the document...
Error in read_xml.raw(charToRaw(enc2utf8(x)), "UTF-8", ..., as_html = as_html,  : 
  Specification mandate value for attribute of [41]

This issue is closed. Was it resolved? If so, how?

Thanks, S

slockton commented 2 years ago

It turns out my issue was with a line of text that had <text inside greater than and less that symbols>. Removing those enabled the document to render correctly.