Export BioCompute Object as Word document

export_word(x, file, wrap = FALSE, linewidth = 80, ...)

Arguments

x

BioCompute Object JSON string from convert_json

file

Word (docx) output file path

wrap

Should the long lines be wrapped?

linewidth

Maximum linewidth when wrap is TRUE.

...

Additional parameters for render.

Value

Path to the output file

Examples

# \donttest{ file_docx <- tempfile(fileext = ".docx") generate_example("HCV1a") %>% convert_json() %>% export_word(file_docx)
#> #> #> processing file: export.Rmd
#> | | | 0% | |............ | 17% #> ordinary text without R code #> #> | |....................... | 33% #> label: setup (with options) #> List of 4 #> $ include : logi FALSE #> $ echo : logi FALSE #> $ warning : logi FALSE #> $ fig.align: chr "center" #> #> | |................................... | 50% #> ordinary text without R code #> #> | |............................................... | 67% #> label: wrap-hook #> | |.......................................................... | 83% #> ordinary text without R code #> #> | |......................................................................| 100% #> label: unnamed-chunk-1 #>
#> output file: export.knit.md
#> /usr/local/bin/pandoc +RTS -K512m -RTS export.utf8.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash+smart --output /var/folders/w4/h1qfny1d0bq5qx4r80pq1xnm0000gn/T//Rtmp9Lbym5/file10624663dc396.docx --highlight-style tango --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/pagebreak.lua
#> #> Output created: /var/folders/w4/h1qfny1d0bq5qx4r80pq1xnm0000gn/T//Rtmp9Lbym5/file10624663dc396.docx
# }