Skip to content

Commit

Permalink
Merge pull request tomwenseleers#15 from tomwenseleers/Prepare-CRAN-s…
Browse files Browse the repository at this point in the history
…ubmission

Prepare cran submission
  • Loading branch information
tomwenseleers authored Sep 24, 2018
2 parents 82dc93d + ab99512 commit f5004bf
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 14 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ Features
* Fully editable Powerpoint vector format output, enabling manual tidy-up of plot layout.
* Save the output of statistical analysis in R as tables in Excel, Word, PowerPoint, Latex or HTML documents.
* Customize formatting of R outputs.
* This is the first beta release, and some functionality may still change in
the final release.

Installation
------------
Expand Down Expand Up @@ -59,11 +57,11 @@ Getting Started
?graph2ppt
?graph2doc
?graph2tex
?graph2svg
?graph2png
?table2ppt
?table2tex
?table2excel
?table2doc
?table2html

Expand All @@ -80,28 +78,28 @@ Getting Started
graph2ppt(file="ggplot2_plot.pptx", width=6, height=5, append=TRUE)
# export to Word
graph2doc()
# export to Latex
graph2tex()
# export to bitmap or vector formats
graph2svg()
graph2png()
graph2tif()
graph2jpg()

## export of aov Anova output
# export to Powerpoint
fit=aov(yield ~ block + N * P + K, npk)
x=summary(fit)
# export to Powerpoint
table2ppt(x=x)
table2ppt(x=x,file="table_aov.docx")
table2ppt(x=x,file="table_aov.docx",digits=4,append=TRUE)
table2ppt(x=x,file="table_aov.docx",digits=4,digitspvals=1,
table2ppt(x=x,file="table_aov.pptx")
table2ppt(x=x,file="table_aov.pptx",digits=4,append=TRUE)
table2ppt(x=x,file="table_aov.pptx",digits=4,digitspvals=1,
font="Times New Roman",pointsize=16,append=TRUE)
# export to Latex
x=summary(fit)
table2tex(x=x)
# export to Word
table2doc(x=x)
# export to Excel
table2excel(x=x, file = "table_aov.xlsx",digits=4,digitspvals=1,
sheetName = "Anova_table", add.rownames = TRUE)
# export to Latex
table2tex(x=x)
# export to HTML
table2html(x=x)

Expand Down
2 changes: 0 additions & 2 deletions examples/graph2office.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ x=plot(effects::Effect(c("income", "education"), fit),multiline=TRUE,
span=1, show.fitted=TRUE, ci.style="bands")
graph2ppt(x=x,file="effect_plot.pptx", append=TRUE)


# example export of base R plot
boxplot(mpg~cyl,data=mtcars,col="cyan2")
graph2ppt(file="boxplot.pptx")
Expand All @@ -49,7 +48,6 @@ graph2ppt(file="boxplot.pptx")
f=function() boxplot(mpg~cyl,data=mtcars,col="cyan2")
graph2ppt(fun=f, file="boxplot.pptx", aspectr=1.3, append=TRUE)


# heatmap example
heatmap(as.matrix(eurodist))
graph2ppt(file="heatmap.pptx")
Expand Down
68 changes: 68 additions & 0 deletions revdep/revdep-R-devel/00check.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
* using log directory 'd:/RCompile/CRANguest/R-devel/export.Rcheck'
* using R Under development (unstable) (2018-09-20 r75339)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* checking for file 'export/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'export' version '0.2.2'
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'Christophe Vanderaa <[email protected]>'

New submission
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking serialization versions ... OK
* checking whether package 'export' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for future file timestanps ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* loading checks for arch 'i386'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
** checking loading without being on the library search path ... OK
** checking use of S3 registration ... OK
* loading checks for arch 'x64'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... OK
** checking whether the namespace can be unloaded cleanly ... OK
** checking loading without being on the library search path ... OK
** checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [11s] OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of 'data' directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking examples ...
** running examples for arch 'i386' ... [21s] OK
** running examples for arch 'x64' ... [22s] OK
* checking PDF version of manual ... OK
* DONE
Status: 1 NOTE
15 changes: 15 additions & 0 deletions revdep/revdep-R-devel/00install.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* installing *source* package 'export' ...
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* MD5 sums
packaged installation of 'export' as export_0.2.2.zip
* DONE (export)
In R CMD INSTALL

0 comments on commit f5004bf

Please sign in to comment.