All Projects → guokai8 → eoffice

guokai8 / eoffice

Licence: other
Export and import graphics and tables to MicroSoft office

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to eoffice

redmine preview office
Plugin for Redmine. Preview Microsoft Office Documents in Redmine's preview pane
Stars: ✭ 27 (+42.11%)
Mutual labels:  microsoft, office, docx, pptx
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+12189.47%)
Mutual labels:  office, docx, pptx
modern-office-git-diff
An experiment in tracking and diffing versions of modern Microsoft Office files in Git.
Stars: ✭ 51 (+168.42%)
Mutual labels:  office, docx, pptx
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✭ 2,150 (+11215.79%)
Mutual labels:  microsoft, office, docx
Open Xml Sdk
Open XML SDK by Microsoft
Stars: ✭ 3,005 (+15715.79%)
Mutual labels:  office, docx, pptx
Phpstamp
The XSL-way templating library for MS Office Word DOCX documents.
Stars: ✭ 150 (+689.47%)
Mutual labels:  microsoft, office, docx
Duckx
C++ library for creating and updating Microsoft Word (.docx) files.
Stars: ✭ 214 (+1026.32%)
Mutual labels:  office, docx
Docx
Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Stars: ✭ 1,288 (+6678.95%)
Mutual labels:  office, docx
MS-Office-Electron
A Microsoft Office Online Desktop Client made with Electron. Free of Cost.
Stars: ✭ 45 (+136.84%)
Mutual labels:  microsoft, office
Excelize
Golang library for reading and writing Microsoft Excel™ (XLSX) files.
Stars: ✭ 10,286 (+54036.84%)
Mutual labels:  microsoft, office
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (+5205.26%)
Mutual labels:  office, docx
Regtweaks
Registry Tweaks for Windows.
Stars: ✭ 675 (+3452.63%)
Mutual labels:  microsoft, office
Onenote
📚 Linux Electron Onenote - A Linux compatible version of OneNote
Stars: ✭ 1,300 (+6742.11%)
Mutual labels:  microsoft, office
Officeproducer
Produce doc/docx/pdf format from doc/docx template
Stars: ✭ 95 (+400%)
Mutual labels:  office, docx
Pylightxl
A light weight, zero dependency, minimal functionality excel read/writer python library
Stars: ✭ 134 (+605.26%)
Mutual labels:  microsoft, office
Kms Activator
Windows activation research project.
Stars: ✭ 1,001 (+5168.42%)
Mutual labels:  microsoft, office
Etherpad Lite
Etherpad: A modern really-real-time collaborative document editor.
Stars: ✭ 11,937 (+62726.32%)
Mutual labels:  microsoft, docx
wordroller
Free Microsoft Word document (aka .docx) processing library for .Net
Stars: ✭ 17 (-10.53%)
Mutual labels:  microsoft, docx
Phpword
A pure PHP library for reading and writing word processing documents
Stars: ✭ 6,017 (+31568.42%)
Mutual labels:  office, docx
Quip Export
Export all folders and documents from Quip
Stars: ✭ 28 (+47.37%)
Mutual labels:  office, docx

eoffice

CRAN version DOI Project Status:

Export and import graphics and tables to MicroSoft office

Description

eoffice provide wrap functions to export and import graphics and data.frames in R to MicroSoft office with fully editable figures and tables(docx, pptx format). And eoffice also provide write out figures with lots of different formats, such as pdf, eps, emf, tiff, svg, wmf, png and jpeg. eoffice also support write out or display ggplot2 type figure with plotly. Since people may work on the platform without GUI support, eoffice also provide function to easily write out figures to all above formats, pptx and docx.eoffice is avaiable on CRAN now. eoffice provides function to extract colors from figures with different formats or pdf files. For linux platform please install imageMagick to use the infigure function.

on Debian/Ubuntu this is called libmagick++-dev:
sudo apt-get install libmagick++-dev
On Fedora or CentOS/RHEL we need ImageMagick-c++-devel:
sudo yum install ImageMagick-c++-devel
If you can't install the ImageMagick you can go with eoffice 0.1.6 version

Installation

library(devtools)
## install_github("guokai8/eoffice")
## eoffice is available on CRAN
install.packages("eoffice")

Software Usage

library(eoffice)
library(ggplot2)
## make a figure with you custom function
plot(mtcars$mpg, mtcars$disp)
topptx(filename = "mtcars.pptx")
## You can also use ggplot 
ggplot(mtcars, aes(mpg, disp, color = factor(cyl))) + geom_point()
topptx(filename = "mtcars.pptx")
## or todocx(filename = "mtcars.docx")
p <- ggplot(mtcars, aes(mpg, disp, color = factor(cyl))) + geom_point()
topptx(p, filename = "mtcars.pptx", width = 6, height = 4)
## use above method if you want use topptx with ggplot function in a loop
## write out table to office
totable(head(mtcars), filename = "mtcars.docx")
totable(head(mtcars), filename = "mtcars.pptx")
## append was supported if you want add figures or tables.
## Now support direct output of common objects produced by R statistical functions
tt <- t.test(wt ~ am, mtcars)
totable(tt, filename = "mtcars_test.pptx")
totable(t.test(wt ~ am, mtcars), filename = "mtcars_test.pptx")
## inpptx and indocx provide function read the tables in pptx or docx
tabs <- inpptx(filename = "mtcars.pptx", header = TRUE)
## output different figure formats
tofigure(ggplot(mtcars, aes(mpg, disp, color = factor(cyl))) + geom_point(),filename = "mtcars.pdf")
tofigure(ggplot(mtcars, aes(mpg, disp, color = factor(cyl))) + geom_point(),filename = "mtcars.eps")
## display figure with plotly
tohtml(p, save = FALSE)
## if you use basic plot function or other plot function you need first use convertplot to convert 
## it to ggplot object when you are working on the platform without GUI
p <- convertplot(plot(1:10))
tofigure(p, filename = "test.pdf")
topptx(p, filename = "test.pptx")
## if you use ggplot like function you don't need to transform the format

Note

The eoffice just a package for funs. eoffice depends on officer and rvg package which include lots of fantastic functions. Here, eoffice provides simplified functions which could be save some time to learn the complete functions from above packages. And there are some other packages provide these functions. Comparing with these packages, eoffice include own features which I think really helpful to me. Besides, eoffice also provide functions to read tables from pptx and docx. Read graphics and extract colors from the figures are available now.

Contact information

For any questions please contact [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].