Package WordR. September 7, 2017

Similar documents
Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package SEMrushR. November 3, 2018

Package bisect. April 16, 2018

Package canvasxpress

Package fastdummies. January 8, 2018

Package ECctmc. May 1, 2018

Package docxtools. July 6, 2018

Package statsdk. September 30, 2017

Package messaging. May 27, 2018

Package wrswor. R topics documented: February 2, Type Package

Package qualmap. R topics documented: September 12, Type Package

Package kdtools. April 26, 2018

Package datasets.load

Package effectr. January 17, 2018

Package validara. October 19, 2017

Package gtrendsr. October 19, 2017

Package calpassapi. August 25, 2018

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package edfreader. R topics documented: May 21, 2017

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package condusco. November 8, 2017

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package shinyfeedback

Package rsppfp. November 20, 2018

Package knitrprogressbar

Package TrafficBDE. March 1, 2018

Package queuecomputer

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package catenary. May 4, 2018

Package barcoder. October 26, 2018

Package robotstxt. November 12, 2017

Package epitab. July 4, 2018

Package spark. July 21, 2017

Package ezknitr. September 16, 2016

Package ASICS. January 23, 2018

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package splithalf. March 17, 2018

Package vinereg. August 10, 2018

Package gifti. February 1, 2018

Package modules. July 22, 2017

Package spelling. December 18, 2017

Package facerec. May 14, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package balance. October 12, 2018

Package githubinstall

Package semver. January 6, 2017

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package weco. May 4, 2018

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Package gtrendsr. August 4, 2018

Package climber. R topics documented:

Package ether. September 22, 2018

Package fastqcr. April 11, 2017

Package editdata. October 7, 2017

Package rgho. R topics documented: January 18, 2017

Package states. May 4, 2018

Package opencage. January 16, 2018

Package fusionclust. September 19, 2017

Package internetarchive

Package liftr. R topics documented: May 14, Type Package

Package omu. August 2, 2018

Package coga. May 8, 2018

Package wdman. January 23, 2017

Package fitbitscraper

Package phrasemachine

Package vip. June 15, 2018

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package kirby21.base

Package quickreg. R topics documented:

Package data.world. April 5, 2018

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package sfdct. August 29, 2017

Package svalues. July 15, 2018

Package pdfsearch. July 10, 2018

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package shiny.semantic

Package dbx. July 5, 2018

Package keyholder. May 19, 2018

Package stapler. November 27, 2017

Package dkanr. July 12, 2018

Package anomalize. April 17, 2018

Package postal. July 27, 2018

Package vdiffr. April 27, 2018

Package shinyaframe. November 26, 2017

Package crossword.r. January 19, 2018

Package eply. April 6, 2018

Package rwars. January 14, 2017

Package auctestr. November 13, 2017

Package datapasta. January 24, 2018

Package lumberjack. R topics documented: July 20, 2018

Package metaheur. June 30, 2016

Package linkspotter. July 22, Type Package

Package cregulome. September 13, 2018

Package widyr. August 14, 2017

Package RndTexExams. R topics documented:

Package fitur. March 11, 2018

Package preprosim. July 26, 2016

Package jpmesh. December 4, 2017

Package ssh. June 4, 2018

Package tidytransit. March 4, 2019

Transcription:

Type Package Package WordR September 7, 2017 Title Rendering Word Documents with R Inline Code Version 0.2.2 Author Tomas Hovorka Maintainer Tomas Hovorka <tomashovorka@seznam.cz> Serves for rendering MS Word documents with R inline code and inserting tables and plots. License GPL-3 Encoding UTF-8 LazyData true Imports dplyr, ReporteRs, officer RoxygenNote 6.0.1 Suggests knitr, rmarkdown, ggplot2, testthat VignetteBuilder knitr NeedsCompilation no Repository CRAN Date/Publication 2017-09-07 20:49:14 UTC R topics documented: addflextables........................................ 2 addplots........................................... 3 examplepath......................................... 4 renderinlinecode...................................... 4 WordR............................................ 5 Index 6 1

2 addflextables addflextables Read Word document with bookmarks and create other Word document with rendered tables in place. This function is basically a loop wrapper around addflextable function. addflextables(docxin, docxout, FlexTables = list(), debug = F,...) Arguments docxin docxout FlexTables debug String of length one; path to Word file with bookmarks. String of length one; path for output Word file. Named list of FlexTables; Tables to be inserted into the Word file Boolean of length one; If True then browser() is called at the beginning of the function... Parameters to be sent to other methods (mainly addflextable) Path to the rendered Word file if the operation was successfull. library(reporters) ft_mtcars <- vanilla.table(mtcars) ft_iris <- vanilla.table(iris) FT <- list(ft_mtcars=ft_mtcars,ft_iris=ft_iris) addflextables( paste(examplepath(),'templates/templateft.docx',sep = ''), paste(examplepath(),'results/resultft.docx',sep = ''), FT)

addplots 3 addplots Read Word document with bookmarks and create other Word documnet with rendered plots in place. This function is basically a loop wrapper around addplot function. addplots(docxin, docxout, Plots = list(), debug = F,...) Arguments docxin docxout Plots debug String of length one; path to Word file with bookmarks. String of length one; path for output Word file. Named list of function creating plots (see addplot) for details) to be inserted into the Word file Boolean of length one; If True then browser() is called at the beginning of the function... Parameters to be sent to other methods (mainly addplot) Path to the rendered Word file if the operation was successfull. library(ggplot2) Plots<-list(plot1=function()plot(hp~wt,data=mtcars,col=cyl), plot2=function()print(ggplot(mtcars,aes(x=wt,y=hp,col=as.factor(cyl)))+geom_point())) addplots( paste(examplepath(),'templates/templateplots.docx',sep = ''), paste(examplepath(),'results/resultplots.docx',sep = ''), Plots,height=4)

4 renderinlinecode examplepath Returns path to examples folder Returns path to examples folder examplepath() Returns path to examples folder examplepath() renderinlinecode Read Word document with R code blocks, evaluate them and writes the result into another Word document. Read Word document with R code blocks, evaluate them and writes the result into another Word document. renderinlinecode(docxin, docxout, debug = F) Arguments docxin docxout debug String of length one; path to Word file with R code blocks. String of length one; path for output Word file. Boolean of length one; If True then browser() is called at the beginning of the function Path to the rendered Word file if the operation was successfull.

WordR 5 library(reporters) renderinlinecode( paste(examplepath(),'templates/template1.docx',sep = ''), paste(examplepath(),'results/result1.docx',sep = '')) WordR WordR: package for rendering MS Word documents with R inline code and inserting tables and plots. Details The WordR package provides three main functions addflextables, addplots and renderinlinecode, which together should provide enough functionality to create a nice, customised MS Word report from a given template. More information about the package can be found in vignette or run: vignette("wordr", package = "WordR")

Index addflextable, 2 addflextables, 2, 5 addplot, 3 addplots, 3, 5 browser, 2 4 examplepath, 4 renderinlinecode, 4, 5 WordR, 5 WordR-package (WordR), 5 6