library(RDCOMClient)
source("WordCode.R")
# setClass("Range", contains = 'COMIDispatch')
app = new("_Application", getCOMInstance("Word.Application"))
app$Documents$Add()
doc = app$Documents[[1]]
doc$Range()
app$Documents[[1]]$AutoHyphenation = !app$Documents[[1]]$AutoHyphenation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.